import Link from "next/link"; import type { ReactNode } from "react"; interface PageShellProps { title: string; /** Optional subtitle under the title */ description?: string; children: ReactNode; /** Optional return control shown top-left above the title */ backHref?: string; backLabel?: string; } /** * Consistent page header (title + description) used by every route. */ export function PageShell({ title, description, children, backHref, backLabel = "Back", }: PageShellProps) { return (
{backHref ? ( {backLabel} ) : null}

{title}

{description ? (

{description}

) : null}
{children}
); }