(matches: boolean)
| 163 | const media = window?.matchMedia?.('(prefers-color-scheme: dark)') |
| 164 | |
| 165 | function matchesMediaToColorMode(matches: boolean) { |
| 166 | return matches ? 'night' : 'day' |
| 167 | } |
| 168 | |
| 169 | function handleChange(event: MediaQueryListEvent) { |
| 170 | const isNight = event.matches |
no outgoing calls
no test coverage detected