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

13 lines (10 loc) 309 B
import {useContext} from 'react' import {CommentsEnabledContext} from 'sanity/_singletons' import {type CommentsEnabledContextValue} from '../context/enabled/types' /** * @beta * @hidden */ export function useCommentsEnabled(): CommentsEnabledContextValue { return useContext(CommentsEnabledContext) }