import { lazy, Suspense, type ComponentType, type LazyExoticComponent, } from "react"; type DynamicOptions = { ssr?: boolean; }; export default function dynamic( loader: () => Promise<{ default: ComponentType }>, options?: DynamicOptions, ): ComponentType { void options; const LazyComponent: LazyExoticComponent> = lazy(loader); return function DynamicComponent(props: Props) { return ( ); }; }