()
| 8 | afterHydration = false, |
| 9 | ): T { |
| 10 | const getMedia = (): MediaQueryList[] => |
| 11 | queries.map((q) => window.matchMedia(q)); |
| 12 | |
| 13 | const getValue = (mediaQueryLists: MediaQueryList[]) => { |
| 14 | const index = mediaQueryLists.findIndex((mql) => mql.matches); |