Commit 9cec7978 authored by AlexandrValgamov's avatar AlexandrValgamov
Browse files

Catalog | chore: fix sc registry

parent 3aca8cb6
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
'use client';

import { ReactNode, useState } from 'react';
import { FC, ReactNode, useState } from 'react';
import { useServerInsertedHTML } from 'next/navigation';
import { ServerStyleSheet, StyleSheetManager } from 'styled-components';

const StyledComponentsRegistry = ({ children }: { children: ReactNode }) => {
interface IStyledComponentsRegistry {
  children: ReactNode;
}
const StyledComponentsRegistry: FC<IStyledComponentsRegistry> = ({
  children,
}) => {
  const [styledComponentsStyleSheet] = useState(() => new ServerStyleSheet());

  useServerInsertedHTML(() => {