2023-08-25 07:11:33 +00:00
|
|
|
"use client";
|
|
|
|
|
|
2025-11-21 14:55:28 +01:00
|
|
|
import { ReactNode } from "react";
|
2023-08-25 07:11:33 +00:00
|
|
|
import dynamic from "next/dynamic";
|
|
|
|
|
|
2025-11-21 14:55:28 +01:00
|
|
|
type ClientOnlyProps = { children: ReactNode };
|
2023-08-25 07:11:33 +00:00
|
|
|
const ClientOnly = (props: ClientOnlyProps) => {
|
|
|
|
|
const { children } = props;
|
|
|
|
|
|
|
|
|
|
return children;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default dynamic(() => Promise.resolve(ClientOnly), {
|
|
|
|
|
ssr: false,
|
|
|
|
|
});
|