13 lines
272 B
TypeScript
13 lines
272 B
TypeScript
import { Suspense } from "react";
|
|
import { Outlet } from "react-router-dom";
|
|
import Loading from "@/pages/Loading";
|
|
|
|
const SuspenseWrapper = () => {
|
|
return (
|
|
<Suspense fallback={<Loading />}>
|
|
<Outlet />
|
|
</Suspense>
|
|
);
|
|
};
|
|
|
|
export default SuspenseWrapper;
|