import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; type ControlButtonVariant = 'primary' | 'ghost' | 'secondary' | 'danger'; export type FinancialControlOption = { value: string; label: string; disabled?: boolean; }; export type FinancialControlSection = { id: string; label: string; value: string; options: FinancialControlOption[]; onChange: (value: string) => void; }; export type FinancialControlAction = { id: string; label: string; onClick: () => void; disabled?: boolean; variant?: ControlButtonVariant; }; type FinancialControlBarProps = { title?: string; subtitle?: string; sections: FinancialControlSection[]; actions?: FinancialControlAction[]; className?: string; }; export function FinancialControlBar({ title = 'Control Bar', subtitle, sections, actions, className }: FinancialControlBarProps) { return (

{title}

{subtitle ? (

{subtitle}

) : null}
{actions && actions.length > 0 ? (
{actions.map((action) => ( ))}
) : null}
{sections.map((section) => (
{section.label}
{section.options.map((option) => ( ))}
))}
); }