import type { ReactNode } from "react"; import { Card } from "@/components/ui/card"; interface SelectionRailCardProps { title: string; description?: string; children: ReactNode; footer?: ReactNode; minHeight?: number; /** Legacy MUI `sx` passthroughs; retained for API compatibility (no-op). */ contentSx?: object; /** Legacy MUI `sx` passthroughs; retained for API compatibility (no-op). */ bodySx?: object; } /** * Selection-rail surface: titled header, scrollable body, optional footer. * * Preserves the exported props (`minHeight`, `footer`, and the legacy `*Sx` * no-op passthroughs) so consuming pages (Actions, Settings) compile * unchanged. The scrollable body and footer contract are preserved. */ export function SelectionRailCard({ title, description, children, footer, minHeight = 420, }: SelectionRailCardProps) { return (

{title}

{description ? (

{description}

) : null}
{children}
{footer ?
{footer}
: null}
); }