import Title from './title'; type ChildrenType = JSX.Element | Array; type LayoutProps = { children?: ChildrenType, removeContainer?: boolean, }; function Container(props: {children?: ChildrenType, ignore?: boolean}) { if (props.ignore) return <>{props.children}; return
{props.children}
; } function Layout(props : LayoutProps) { return ( <> <Container ignore={props.removeContainer}>{props.children}</Container> </> ); } export default Layout;