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.

20 lines (17 loc) 704 B
import { nn } from '@liveblocks/core'; import { createContext, useContext } from 'react'; const AiComposerContext = createContext(null); const AiComposerEditorContext = createContext(null); function useAiComposerEditorContext() { const composerEditorContext = useContext(AiComposerEditorContext); return nn( composerEditorContext, "AiComposer.Form is missing from the React tree." ); } function useAiComposer() { const composerContext = useContext(AiComposerContext); return nn(composerContext, "AiComposer.Form is missing from the React tree."); } export { AiComposerContext, AiComposerEditorContext, useAiComposer, useAiComposerEditorContext }; //# sourceMappingURL=contexts.js.map