link-stack/apps/link/app/(main)/_components/ClientOnly.tsx
2024-12-13 16:37:20 +01:00

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,
});