15 lines
316 B
TypeScript
15 lines
316 B
TypeScript
"use client";
|
|
|
|
import { ReactNode } from "react";
|
|
import dynamic from "next/dynamic";
|
|
|
|
type ClientOnlyProps = { children: ReactNode };
|
|
const ClientOnly = (props: ClientOnlyProps) => {
|
|
const { children } = props;
|
|
|
|
return children;
|
|
};
|
|
|
|
export default dynamic(() => Promise.resolve(ClientOnly), {
|
|
ssr: false,
|
|
});
|