import type { ReactNode } from 'react' interface AdminCollapsibleCardProps { title: string subtitle?: string hint?: string previewUrl?: string children: ReactNode open?: boolean className?: string } /** * Reusable collapsible card for admin forms. * Replaces the repeated
/ pattern throughout AdminPage. */ export function AdminCollapsibleCard({ title, subtitle, hint = 'Expand to edit', previewUrl, children, open = false, className = '', }: AdminCollapsibleCardProps) { return (
{title} {subtitle &&

{subtitle}

}
{previewUrl && ( e.stopPropagation()} > Preview )} {hint}
{children}
) }