link-stack/apps/link/app/(main)/_components/ClientOnly.tsx
Darren Clarke c620e4bf25 Flatten
2023-08-25 07:11:33 +00:00

14 lines
283 B
TypeScript

"use client";
import dynamic from "next/dynamic";
type ClientOnlyProps = { children: JSX.Element };
const ClientOnly = (props: ClientOnlyProps) => {
const { children } = props;
return children;
};
export default dynamic(() => Promise.resolve(ClientOnly), {
ssr: false,
});