{icon && (
{description && (
{icon}
)}
{title}
{description}
)} {actions &&{actions}
}
import Link from "next/link"; import { ArrowLeft } from "lucide-react"; import { ReactNode } from "react"; import { cn } from "@/lib/utils"; interface PageLayoutProps { title: string; description?: ReactNode; icon?: ReactNode | null; children: ReactNode; actions?: ReactNode; backLinkHref?: string; backLinkLabel?: string; className?: string; } export function PageLayout({ title, description, icon, children, actions, backLinkHref = "/", backLinkLabel = "Back to Home", className, }: PageLayoutProps) { return (
{description}
)} {actions &&