MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / isBrowser

Function isBrowser

apps/web/hooks/useMedia.ts:3–5  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { useEffect, useState } from 'react';
2
3function isBrowser() {
4 return typeof window !== 'undefined';
5}
6
7export const useMedia = <T>(
8 queries: string[],

Callers 1

useMediaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected