UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 367 B
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import t,{useContext as o}from"react";const i=t.createContext({}),m=t=>{var{children:o}=t,m=r(t,["children"]);return e(i.Provider,{value:m,children:o})},n=()=>o(i),c=i.Consumer;export{c as SidebarUserInfoConsumer,i as SidebarUserInfoContext,m as SidebarUserInfoProvider,n as useSidebarUserInfo};