import type { FunctionComponent, PropsWithChildren } from "react"; import BaseLayout from "./base-layout"; type Props = { title?: string; }; const Layout: FunctionComponent> = ({ children, title }) => (
{title ? (

{title}

) : null}
{children}
); export default Layout;