import { cn } from "@/lib/utils"; import { ChevronRight, Home } from "lucide-react"; import Link from "next/link"; interface Breadcrumb { label: string; href?: string; } interface PageHeaderProps { title: string; description?: string; breadcrumbs?: Breadcrumb[]; actions?: React.ReactNode; className?: string; } export function PageHeader({ title, description, breadcrumbs, actions, className, }: PageHeaderProps) { return (
{breadcrumbs && breadcrumbs.length > 0 && ( )}

{title}

{description && (

{description}

)}
{actions &&
{actions}
}
); } interface PageSectionProps { title?: string; description?: string; children: React.ReactNode; actions?: React.ReactNode; className?: string; } export function PageSection({ title, description, children, actions, className, }: PageSectionProps) { return (
{(title || actions) && (
{title && (

{title}

)} {description && (

{description}

)}
{actions &&
{actions}
}
)} {children}
); }