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) 535 B
import{a as s}from"./chunk-A26HG2QE.mjs";import{a as e}from"./chunk-VDUOV3PV.mjs";import{a as c,b as n}from"./chunk-XDBZ6FPN.mjs";import{a as i}from"./chunk-2YWS4AKP.mjs";import{Fragment as f,jsx as t,jsxs as T}from"react/jsx-runtime";var g=({targetSelector:r,nonce:m,styles:p,forcedTheme:S,forcedColorScheme:h})=>{let o=[r||"#"+i,c,p,S,h];return typeof window!=n&&e(...o),t("script",{dangerouslySetInnerHTML:{__html:`(${e})(${JSON.stringify(o).slice(1,-1)})`},nonce:m})},d=r=>T(f,{children:[t(g,{...r}),t(s,{...r})]});export{d as a};