import React, { ComponentType, FunctionComponent, Suspense, SuspenseProps } from 'react' export function withSuspense
( WrappedComponent: ComponentType
, fallback: SuspenseProps['fallback'] = null, ): FunctionComponent
{
function ComponentWithSuspense(props: P) {
return (
( WrappedComponent: ComponentType
,
fallback: SuspenseProps['fallback'] = null,
propsAreEqual?: Parameters