UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 462 B
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import o,{useContext as t}from"react";const n=o.createContext(null),i=o=>{var{children:t}=o,i=r(o,["children"]);return e(n.Provider,{value:i,children:t})};function a(){const r=t(n);if(!r)throw new Error("useSidebarLangDropdown must be used within a SidebarLangDropdownProvider.");return r}export{n as SidebarLangDropdownContext,i as SidebarLangDropdownProvider,a as useSidebarLangDropdown};