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

{title}

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