import { ChevronDown } from 'lucide-react'; import { Collapsible, CollapsibleTrigger, CollapsibleContent } from '@/components/ui/collapsible'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { cn } from '@/lib/utils'; interface DetailedViewCollapsibleProps { isCollapsed: boolean; onToggle: () => void; children: React.ReactNode; fieldCount?: number; className?: string; staggerIndex?: number; } /** * Collapsible wrapper for detailed field-by-field view sections * Provides expand/collapse functionality with visual indicators */ export function DetailedViewCollapsible({ isCollapsed, onToggle, children, fieldCount, className, staggerIndex = 0 }: DetailedViewCollapsibleProps) { // Calculate stagger delay: 50ms per item, max 300ms const staggerDelay = Math.min(staggerIndex * 50, 300); return ( onToggle()}>
{children}
); }