UNPKG

@liveblocks/react-ui

Version:

A set of React pre-built components for the Liveblocks products. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.

25 lines (21 loc) 846 B
'use strict'; var core = require('@liveblocks/core'); var react = require('react'); const AiComposerContext = react.createContext(null); const AiComposerEditorContext = react.createContext(null); function useAiComposerEditorContext() { const composerEditorContext = react.useContext(AiComposerEditorContext); return core.nn( composerEditorContext, "AiComposer.Form is missing from the React tree." ); } function useAiComposer() { const composerContext = react.useContext(AiComposerContext); return core.nn(composerContext, "AiComposer.Form is missing from the React tree."); } exports.AiComposerContext = AiComposerContext; exports.AiComposerEditorContext = AiComposerEditorContext; exports.useAiComposer = useAiComposer; exports.useAiComposerEditorContext = useAiComposerEditorContext; //# sourceMappingURL=contexts.cjs.map