www/components/layout.tsx

21 lines
412 B
TypeScript
Raw Permalink Normal View History

2021-12-07 22:38:31 -05:00
import Title from './title';
import Container, { ChildrenType } from './container';
2022-04-27 21:55:18 -04:00
type LayoutProps = {
children?: ChildrenType,
2022-10-04 23:41:59 -04:00
removeContainer?: boolean,
2021-12-07 22:38:31 -05:00
};
function Layout(props: LayoutProps) {
2021-12-07 22:38:31 -05:00
return (
<>
<Title />
<Container ignore={props.removeContainer}>
{props.children}
</Container>
2021-12-07 22:38:31 -05:00
</>
);
}
export default Layout;