'use client' import dynamic from 'next/dynamic' import type { ComponentType } from 'react' import { Skeleton } from '@/components/ui/skeleton' export const createCampaignClientDynamic =
( importModule: () => Promise>>, exportName: string, skeletonHeightClassName: string, ) => dynamic(() => importModule().then((module) => module[exportName]), { ssr: false, loading: () => ( ), })