"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
var _chunkGST2HPBEcjs = require('./chunk-GST2HPBE.cjs');var _chunk3CNSKST2cjs = require('./chunk-3CNSKST2.cjs');var _chunk5NXYDZPPcjs = require('./chunk-5NXYDZPP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var i=`${_chunkGST2HPBEcjs.a.MissingProvider}: <EulerMaterials.Provider>`,l=_react.createContext.call(void 0, {get mode(){throw new Error(i)},get setMode(){throw new Error(i)}}),P=({children:m,themeOptions:d={}})=>{let[e,n]=_react.useState.call(void 0, "dark"),M=_react.useMemo.call(void 0, ()=>_chunk3CNSKST2cjs.i.call(void 0, _chunk3CNSKST2cjs.e.call(void 0, d,{palette:{mode:e}})),[e]);return _jsxruntime.jsx.call(void 0, _chunk5NXYDZPPcjs.w,{theme:M,children:_jsxruntime.jsx.call(void 0, l.Provider,{value:{mode:e,setMode:n},children:m})})},E={Context:l,Provider:P},c= exports.a =E;exports.a = c;
