import Meta from './meta'; import Title from './title'; type ChildrenType = JSX.Element | Array; type LayoutProps = { name: string, title?: string, ancestors?: Array<{ name: string, path: string }> 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;