/** @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;
