MCPcopy Create free account
hub / github.com/dailydotdev/apps / getMedia

Function getMedia

packages/shared/src/hooks/useMedia.ts:10–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

useMediaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected