2 lines
413 B
JavaScript
2 lines
413 B
JavaScript
import{w as o}from"./preload-helper-23bf4dac.js";import{p as t,a as e,b as r}from"./state-e537f134.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};
|