"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),c=require("./ChatRuntime.cjs.js"),a=require("./CustomComponentProvider.cjs.js"),l=require("./FileProvider.cjs.js"),h=require("./Stream.cjs.js"),v=require("./Thread.cjs.js"),m=require("./useChatSuggestions.cjs.js");function P({apiUrl:r,assistantId:i,identity:t,children:n,customComponents:o,suspenseFallback:s=e.jsx("div",{children:"Loading chat..."}),initialMode:d="single"}){return e.jsx(u.Suspense,{fallback:s,children:e.jsx(c.ChatRuntimeProvider,{apiUrl:r,assistantId:i,identity:t,children:e.jsx(v.ThreadProvider,{initialMode:d,children:e.jsx(h.StreamProvider,{children:e.jsx(m.SuggestionProvider,{children:e.jsx(a.CustomComponentProvider,{initialComponents:o,children:e.jsx(l.FileProvider,{children:n})})})})})})})}exports.ChatProvider=P;
//# sourceMappingURL=ChatProvider.cjs.js.map
