2 lines
404 B
JavaScript
2 lines
404 B
JavaScript
import{A as o}from"./index-9ccab77c.js";import{p as t,l as e,a as r}from"./state-5021f75d.js";const l=t(o({isDark:!1}),e(),"themeStore"),i=["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"],d=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{d as s,l as t};
|