@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
3 lines • 485 B
JavaScript
'use client';
import{e}from"./chunk-CMFNILWJ.js";import{useContext as s}from"react";import i from"lodash/fp/isEmpty";import{createContext as h}from"react";import{jsx as u}from"react/jsx-runtime";var r=h({theme:e});function T(t,{fail:m=!1,log:n=!1}={}){if(!i(t))return t;try{return s(r).theme}catch(o){if(n&&console.warn("[FRACTAL][THEME] Unable to load the global theme as no ThemeProvider has been found!"),m)throw o}return e}export{T as a};
//# sourceMappingURL=chunk-6S7RPWAM.js.map