import type { ReactNode } from "react"; import Link from "next/link"; import { ChevronRightIcon } from "@heroicons/react/24/outline"; import { Skeleton } from "@/components/atoms/loading-skeleton"; import { ErrorState } from "@/components/atoms/error-state"; export interface BreadcrumbItem { label: string; href?: string; } interface PageLayoutProps { icon?: ReactNode; title: string; description?: string; actions?: ReactNode; breadcrumbs?: BreadcrumbItem[]; loading?: boolean; error?: Error | string | null; onRetry?: () => void; children: ReactNode; } export function PageLayout({ icon, title, description, actions, breadcrumbs, loading = false, error = null, onRetry, children, }: PageLayoutProps) { return (
{description}
)}