www/components/layout.tsx
Paul bfacb23f8a Add posts and old grade-calc
Fix small bugs
>bad commit
2022-02-14 15:32:58 -05:00

23 lines
569 B
TypeScript

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 />
{props.children}
</>
);
}
export default Layout;