@mayank1513/nthul
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) • 441 B
JavaScript
import{a as p}from"./chunk-JJ6PU5HF.mjs";import{cookies as d}from"next/headers";import{jsx as h}from"react/jsx-runtime";var k=({tag:e,targetId:r,styles:s})=>{var n,o;let i=r||p,g=(o=(n=d().get(i))==null?void 0:n.value)!=null?o:",light",[m,l]=g.split(","),f=r?"nth-scoped":"",t=[`th-${m}`,l,f];s&&(t=t.map(c=>{var a;return(a=s[c])!=null?a:c}));let v=e!=null?e:"div";return h(v,{className:t.join(" "),"data-nth":"next",id:i})};export{k as a};