"use client";
import{a}from"./chunk-W4XUJVWF.js";import{e as t,i as o}from"./chunk-3CHPBNY2.js";import{w as r}from"./chunk-KEPQUAOX.js";import{createContext as h,useMemo as p,useState as u}from"react";import{jsx as s}from"react/jsx-runtime";var i=`${a.MissingProvider}: <EulerMaterials.Provider>`,l=h({get mode(){throw new Error(i)},get setMode(){throw new Error(i)}}),P=({children:m,themeOptions:d={}})=>{let[e,n]=u("dark"),M=p(()=>o(t(d,{palette:{mode:e}})),[e]);return s(r,{theme:M,children:s(l.Provider,{value:{mode:e,setMode:n},children:m})})},E={Context:l,Provider:P},c=E;export{c as a};
