www/components/layout.tsx

25 lines
632 B
TypeScript
Raw Normal View History

2021-12-08 03:38:31 +00:00
import FuzzyBar from './fuzzy-bar';
import Meta from './meta';
import Title from './title';
type layoutProps = {
name: string,
title?: string,
children?: JSX.Element | JSX.Element[],
ancestors?: Array<{ name: string, path: string }>
};
function Layout(props: layoutProps) {
return (
<>
<Meta name={props.name} ancestors={props.ancestors} />
<Title title={props.title} name={props.name} ancestors={props.ancestors} />
<FuzzyBar />
2022-04-27 09:10:49 +00:00
<div className='container'>
{props.children}
</div>
2021-12-08 03:38:31 +00:00
</>
);
}
export default Layout;