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.

19 lines (15 loc) 514 B
'use strict'; var react = require('react'); const AiToolInvocationContext = react.createContext(null); function useAiToolInvocationContext() { const context = react.useContext(AiToolInvocationContext); if (context === null) { throw new Error( "This component must be used within a tool's render method." ); } return context; } exports.AiToolInvocationContext = AiToolInvocationContext; exports.useAiToolInvocationContext = useAiToolInvocationContext; //# sourceMappingURL=contexts.cjs.map