()
| 181 | }; |
| 182 | |
| 183 | const toggleAll = () => { |
| 184 | if (selectedValues.length === options.length) { |
| 185 | handleClear(); |
| 186 | } else { |
| 187 | const allValues = options.map((option) => option.value); |
| 188 | setSelectedValues(allValues); |
| 189 | onValueChange(allValues); |
| 190 | } |
| 191 | }; |
| 192 | |
| 193 | return ( |
| 194 | <Popover |
nothing calls this directly
no test coverage detected