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) 286 B
import {useContext} from 'react' import {CommentsIntentContext} from 'sanity/_singletons' import {type CommentIntentGetter} from '../types' /** * @beta * @hidden */ export function useCommentsIntent(): CommentIntentGetter | undefined { return useContext(CommentsIntentContext) }