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.

16 lines (13 loc) 447 B
import { createContext, useContext } from 'react'; const AiToolInvocationContext = createContext(null); function useAiToolInvocationContext() { const context = useContext(AiToolInvocationContext); if (context === null) { throw new Error( "This component must be used within a tool's render method." ); } return context; } export { AiToolInvocationContext, useAiToolInvocationContext }; //# sourceMappingURL=contexts.js.map