www/components/layout.tsx

21 lines
412 B
TypeScript
Raw Permalink Normal View History

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