import CheckIcon from '../icons/CheckIcon'; /** * CheckboxButtonGroup * Renders the visual group of button-styled checkboxes. * * @param {Array} options - Array of objects { key: string, label: string }. * @param {Object} values - Associative object of selected keys { "key1": "1", ... }. * @param {Function} onChange - Callback (newValuesObject) => void. * @param {string} className - Optional extra classes. * @param {string} name - Optional name attribute for inputs (useful for accessibility/forms). */ const CheckboxButtonGroup = ( {options = [], values = {}, onChange, className = '', name = ''} ) => { const handleToggle = ( key ) => { const newValues = {...values}; if ( newValues[key] ) { delete newValues[key]; } else { newValues[key] = '1'; } onChange( newValues ); }; return (