12 lines
265 B
TypeScript
12 lines
265 B
TypeScript
/** @format */
|
|
|
|
import Loading from "@/components/Loading";
|
|
import { Suspense } from "react";
|
|
|
|
const ComponentLoading = (Component: any, props: any) => (
|
|
<Suspense fallback={<Loading />}>
|
|
<Component {...props} />
|
|
</Suspense>
|
|
);
|
|
export default ComponentLoading;
|