import type { ReactNode } from "react"; import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage, } from "@/components/ui/breadcrumb"; /** Current page segment shown in the header — pass a nav item or `{ title, icon? }`. */ export type AppBreadcrumbPage = { title: string; icon?: ReactNode; }; export function AppBreadcrumbs({ page }: { page?: AppBreadcrumbPage | null }) { if (!page?.title) { return null; } return ( {page.icon} {page.title} ); }