'use client'; import { useState } from 'react'; import { ChevronDown } from 'lucide-react'; interface TreatmentRailSectionProps { title: string; subtitle?: string; count?: number; defaultExpanded?: boolean; variant?: 'default' | 'attention'; children: React.ReactNode; } export function TreatmentRailSection({ title, subtitle, count, defaultExpanded = false, variant = 'default', children, }: TreatmentRailSectionProps) { const [expanded, setExpanded] = useState(defaultExpanded); const shellClass = variant === 'attention' ? 'surface-card border border-amber-500/35 bg-amber-500/5' : 'surface-card'; return (
{expanded ?
{children}
: null}
); }