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

8 lines (6 loc) 242 B
import {useContext} from 'react' import {HoveredFieldContext, type HoveredFieldContextValue} from 'sanity/_singletons' /** @internal */ export function useHoveredField(): HoveredFieldContextValue { return useContext(HoveredFieldContext) }