()
| 191 | setCustomColors: React.Dispatch<React.SetStateAction<CustomColorEntry[]>>; |
| 192 | }) => { |
| 193 | const addCustomColor = () => { |
| 194 | const newColor = { |
| 195 | key: `custom${++uniqColorKey}`, |
| 196 | name: `custom${customColors.length}`, |
| 197 | hex: defaultColor, |
| 198 | }; |
| 199 | setCustomColors((colors) => [...colors, newColor]); |
| 200 | }; |
| 201 | |
| 202 | const setCustomColor = (key: string, hex: string) => { |
| 203 | setCustomColors((colors) => |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…