import type { ReactNode } from "react"; import styles from "./layout.module.css"; const productName = "Lincodex"; type PageProps = { /** Text of the page's single h1 and of the document title. */ title: string; /** Short context line above the heading, for example the cabinet name. */ eyebrow?: string | undefined; lead?: ReactNode; width?: "narrow" | "wide"; children?: ReactNode; }; /** * Page content inside a shell's main landmark. It owns the only h1 of the * page and sets the document title (React hoists into <head>). */ export function Page({ title, eyebrow, lead, width = "narrow", children }: PageProps) { return ( <div className={`${styles.page} ${styles[width]}`}> <title>{`${title} - ${productName}`}
{eyebrow ?

{eyebrow}

: null}

{title}

{lead ?
{lead}
: null}
{children ?
{children}
: null} ); }