import React from "react"; import { Layout, Breadcrumb } from "antd"; import Link from "./Link"; const { Content } = Layout; type PageLayoutProps = { nav: { path?: string; name: string; }[]; children?: any; }; export default function PageLayout(props: PageLayoutProps) { return <> ( route.href ? {route.title} : route.title )} items={props.nav.map( (part, index) => ({ href: part.path, title: part.name })) } /> {props.children} ; }