(event: MediaQueryListEvent)
| 167 | } |
| 168 | |
| 169 | function handleChange(event: MediaQueryListEvent) { |
| 170 | const isNight = event.matches |
| 171 | setSystemColorMode(matchesMediaToColorMode(isNight)) |
| 172 | } |
| 173 | |
| 174 | // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition |
| 175 | if (media) { |
nothing calls this directly
no test coverage detected