UNPKG

nextjs-themes

Version:

Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.

2 lines (1 loc) 303 B
import{a as p,b as e,c as r,d as n}from"./chunk-2YWS4AKP.mjs";import{useRGS as T}from"r18gs";var i={t:"",d:r,l:e,c:n,s:e},c="undefined",y=o=>{let t=o!=null?o:"#"+p;return T(t,()=>{let s=typeof m!==c&&localStorage.getItem(t);return s?{...JSON.parse(s),s:m.matches?r:e}:i})};export{i as a,c as b,y as c};