import { Suspense, SuspenseProps } from "react"; /** * Wrapper around `` which will render the `fallback` when on server * Can be simply replaced by `` once React 18 is ready. */ export const ClientSuspense = (props: SuspenseProps) => { return <>{typeof window !== "undefined" ? : props.fallback}; };