UNPKG

mongodb-chatbot-ui

Version:

UI React components for the MongoDB Chatbot Framework

13 lines (12 loc) 289 B
import { useContext as o } from "react"; import { a as e } from "./ChatbotProvider.js"; import "./jsx-runtime.js"; function a() { const t = o(e); if (!t) throw new Error("useChatbotContext must be used within a ChatbotProvider"); return t; } export { a as useChatbotContext };