2 lines
404 B
JavaScript
2 lines
404 B
JavaScript
import{B as t}from"./index-55f02416.js";import{p as e,a as o,b as r}from"./state-8239c202.js";const l=e(t({isDark:!1}),o(),"themeStore"),i=["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"],p=s=>{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=i.includes(s);console.log("Setting theme",s),l.set({theme:s,isDark:a}),r("themeChange",{theme:s,isDark:a})};export{p as s,l as t};
|