import classNames from 'classnames'; import React from 'react'; import StickyBox from 'react-sticky-box'; interface LayoutType extends React.FC { Sidebar: React.FC, Main: React.FC>, Aside: React.FC, } const Layout: LayoutType = ({ children }) => (
{children}
); const Sidebar: React.FC = ({ children }) => (
{children}
); const Main: React.FC> = ({ children, className }) => (
{children}
); const Aside: React.FC = ({ children }) => ( ); Layout.Sidebar = Sidebar; Layout.Main = Main; Layout.Aside = Aside; export default Layout;