UNPKG

tsm-ui

Version:

### Welcome to TSM-UI: Your Design System for Modern Web Development

2 lines (1 loc) 515 B
import{e as r}from"./index.d591fb27.js";import{j as u}from"./jsx-runtime.e41c3930.js";const i=r.createContext({});function C(t){return n;function n(o){const e=s(o.components);return u(t,{...o,allComponents:e})}}function s(t){const n=r.useContext(i);return r.useMemo(()=>typeof t=="function"?t(n):{...n,...t},[n,t])}const f={};function c({components:t,children:n,disableParentContext:o}){let e;return o?e=typeof t=="function"?t({}):t||f:e=s(t),u(i.Provider,{value:e,children:n})}export{i as M,c as a,s as u,C as w};