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?: string; } export function BasePage({ children, className = "", mainClassName = "", maxWidth = "3xl", title, description, }: BasePageProps) { const maxWidthClass = { "3xl": "max-w-3xl", "6xl": "max-w-6xl", full: "max-w-full", }[maxWidth]; return (
{title && description && (

{title}

{description}

)} {children}
); }