UNPKG

react18-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) 352 B
import{a as s,b as r,c as n,d as t}from"./chunk-QW5I2FBF.mjs";import{useRGS as T}from"r18gs";var i={t:"",d:n,l:r,c:t,s:r},h=e=>{let o=e!=null?e:`#${s}`;return T(o,()=>{let p=typeof m!="undefined"&&localStorage.getItem(o);return p?{...JSON.parse(p),s:m.matches?n:r}:i})},S=e=>{let o=`${e!=null?e:`#${s}`}-`;return T(o,{})};export{i as a,h as b,S as c};