@tabnews/ui
Version:
TabNews UI
3 lines (2 loc) • 551 B
JavaScript
"use client";
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("next/navigation"),i=require("react"),r=require("styled-components");function u({children:n}){const[t]=i.useState(()=>new r.ServerStyleSheet);return o.useServerInsertedHTML(()=>{const s=t.getStyleElement();return t.instance.clearTag(),e.jsx(e.Fragment,{children:s})}),typeof window<"u"?e.jsx(e.Fragment,{children:n}):e.jsx(r.StyleSheetManager,{sheet:t.instance,children:n})}exports.StyledComponentsRegistry=u;