import type { ReactNode } from 'react'; import React, { Suspense } from 'react'; export function withFallback
( Component: React.ComponentType
, fallback: ReactNode, ) { const Wrapped: React.FC
= (props) => { return ( ); }; Wrapped.displayName = `withFallback(${Component.displayName! || Component.name || 'Component' })`; return Wrapped; }