@tabnews/ui
Version:
TabNews UI
16 lines (15 loc) • 620 B
JavaScript
"use client";
import { jsx as t, Fragment as n } from "react/jsx-runtime";
import { useServerInsertedHTML as s } from "next/navigation";
import { useState as m } from "react";
import { ServerStyleSheet as i, StyleSheetManager as S } from "styled-components";
function p({ children: r }) {
const [e] = m(() => new i());
return s(() => {
const o = e.getStyleElement();
return e.instance.clearTag(), /* @__PURE__ */ t(n, { children: o });
}), typeof window < "u" ? /* @__PURE__ */ t(n, { children: r }) : /* @__PURE__ */ t(S, { sheet: e.instance, children: r });
}
export {
p as StyledComponentsRegistry
};