import type { ReactNode } from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { cn } from "@/lib/utils"; type AdminPageCardProps = { title: string; description?: string; actions?: ReactNode; children: ReactNode; className?: string; contentClassName?: string; /** 页内锚点(如 #records) */ id?: string; }; /** 与列表/运营台一致的 admin-list-card 外层,用于设置、奖池等多区块页。 */ export function AdminPageCard({ title, description, actions, children, className, contentClassName, id, }: AdminPageCardProps) { return (
{title} {description ? {description} : null}
{actions ?
{actions}
: null}
{children}
); }