import React , { Suspense } from "react" ; import LoadingPage , { LoadingPageProps } from "src/pages/loading" ; param C export const withLoadingPage = < T extends unknown > ( C , loaderProps ? ) : React . FC < T > => ( props ) => ( < Suspense fallback = { < LoadingPage { ... loaderProps } />}> < C { ... props } /> < /Suspense>);