More changes to structure and UI

This commit is contained in:
2022-04-27 21:55:18 -04:00
parent 2d4a2809b4
commit 6ba7d561fb
22 changed files with 257 additions and 218 deletions

View File

@@ -1,22 +1,24 @@
import FuzzyBar from './fuzzy-bar';
import Meta from './meta';
import Title from './title';
// import FuzzyBar from './fuzzy-bar';
type layoutProps = {
type ChildrenType = JSX.Element | Array<ChildrenType>;
type LayoutProps = {
name: string,
title?: string,
children?: JSX.Element | JSX.Element[],
ancestors?: Array<{ name: string, path: string }>
children?: ChildrenType,
};
function Layout(props: layoutProps) {
function Layout({ name, title, children, ancestors }: LayoutProps) {
return (
<>
<Meta name={props.name} ancestors={props.ancestors} />
<Title title={props.title} name={props.name} ancestors={props.ancestors} />
<FuzzyBar />
<Meta name={name} ancestors={ancestors} />
<Title title={title} name={name} ancestors={ancestors} />
{/* <FuzzyBar /> */}
<div className='container'>
{props.children}
{children}
</div>
</>
);