import React from 'react'; import { Link } from 'react-router-dom'; import { PolicyHeader } from './PolicyHeader'; import { Footer } from './Footer'; import { ChevronRight } from 'lucide-react'; export type Crumb = { name: string; path?: string }; type Props = { activePath?: string; children: React.ReactNode; /** Rendered above the page content as a breadcrumb trail. */ breadcrumbs?: Crumb[]; /** Set false for pages that end in a CTA and read better without a footer. */ showFooter?: boolean; }; /** * Shared chrome for every public, crawlable page: header, optional breadcrumb * trail (also emitted as BreadcrumbList JSON-LD by the caller), footer. */ export const PublicPageShell: React.FC = ({ activePath, children, breadcrumbs, showFooter = true, }) => { return (
{breadcrumbs && breadcrumbs.length > 0 && ( )}
{children}
{showFooter &&
); };