export interface SwitchOption { value: T; label: React.ReactNode; } export interface SwitchButtonGroupProps { value: T; options: SwitchOption[]; onChange: (value: T) => void; sx?: React.CSSProperties; size?: 'small' | 'medium' | 'large'; buttonSx?: React.CSSProperties; } export default function SwitchButtonGroup({ value, options, onChange, sx, size = 'medium', buttonSx, }: SwitchButtonGroupProps) { const sizeClasses = { small: 'text-xs', medium: 'text-sm', large: 'text-base', }; return (
{options.map((option) => ( ))}
); }