import { Header } from "@/components/header"; import { Footer } from "@/components/footer"; import { cn } from "@/utils/ui"; interface BasePageProps { children: React.ReactNode; className?: string; mainClassName?: string; maxWidth?: "3xl" | "6xl" | "full"; title?: string; description?: React.ReactNode; action?: React.ReactNode; } export function BasePage({ children, className = "", mainClassName = "", maxWidth = "3xl", title, description, action, }: BasePageProps) { const maxWidthClass = { "3xl": "max-w-3xl", "6xl": "max-w-6xl", full: "max-w-full", }[maxWidth]; return (
{title && description && (

{title}

{description}

{action}
)} {children}
); }