Sanity Library Reference Docs
    Preparing search index...

    Variable CommentsEnabledProviderV2Const Beta

    CommentsEnabledProviderV2: MemoExoticComponent<
        (props: CommentsEnabledProviderProps) => Element,
    > = ...

    Resolves whether comments are enabled for the document from the workspace's document.comments.enabled config. Synchronous: the plan check only decides the mode, which useCommentsMode() hands out as a promise from the plugin's CommentsModePromiseContext.