's'
This commit is contained in:
@@ -0,0 +1 @@
|
||||
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},2827,(a,b,c)=>{"use strict";b.exports=a.r(18622)},81629,(a,b,c)=>{"use strict";b.exports=a.r(2827).vendored["react-ssr"].ReactJsxRuntime},84365,(a,b,c)=>{"use strict";b.exports=a.r(2827).vendored["react-ssr"].React},4911,a=>{"use strict";var b=a.i(81629),c=a.i(84365);let d=(0,c.createContext)(null);function e({children:a}){let[e,f]=(0,c.useState)("system"),[g,h]=(0,c.useState)("light"),i=(0,c.useCallback)(a=>{let b=document.documentElement;b.classList.remove("light","dark"),b.classList.add(a),h(a)},[]),j=(0,c.useCallback)(a=>{f(a),localStorage.setItem("nomadvip-theme",a),i("system"===a?"light":a)},[i]);return(0,c.useEffect)(()=>{f("system"),i("light");let a=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>{i(a.matches?"dark":"light")};return a.addEventListener("change",b),()=>a.removeEventListener("change",b)},[i]),(0,b.jsx)(d.Provider,{value:{theme:e,resolvedTheme:g,setTheme:j},children:a})}function f(){let a=(0,c.useContext)(d);if(!a)throw Error("useTheme must be used within ThemeProvider");return a}a.s(["ThemeProvider",()=>e,"useTheme",()=>f])}];
|
||||
Reference in New Issue
Block a user