"use client"; import type { ReactNode } from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { cn } from "@/lib/utils"; type ConfigDocPageProps = { title: string; titleSuffix?: ReactNode; description?: string; /** Category / play-type chips etc., rendered above the version toolbar. */ filters?: ReactNode; toolbar?: ReactNode; /** @deprecated Pass `footer` on `ConfigDocToolbar` instead. */ context?: ReactNode; children: ReactNode; className?: string; contentClassName?: string; }; export function ConfigDocToolbar({ switcher, actions, footer, className, }: { switcher: ReactNode; actions: ReactNode; /** Live version / read-only hint — rendered as a subtle line under the main row. */ footer?: ReactNode; className?: string; }) { return (
{switcher}
{actions}
{footer ? (
{footer}
) : null}
); } export function ConfigDocPage({ title, titleSuffix, description, filters, toolbar, context, children, className, contentClassName, }: ConfigDocPageProps) { return ( {title} {titleSuffix ? ( {titleSuffix} ) : null} {description ? {description} : null} {toolbar} {filters} {context} {children} ); }