UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

14 lines (11 loc) 273 B
import {useContext} from 'react' import {type ZIndexContextValue} from './types' import {ZIndexContext} from './ZIndexContext' /** * TODO: Rename to `useZOffsets` * * @internal */ export function useZIndex(): ZIndexContextValue { return useContext(ZIndexContext) }