Files
ColdBreeze-chat-web/src/routes/lazy.tsx
T
2023-08-10 12:48:15 +08:00

14 lines
305 B
TypeScript

import { FC, ReactNode, Suspense } from "react";
import Loading from "@/components/Loading";
type Props = {
children?: ReactNode;
};
const Lazy: FC<Props> = ({ children }) => {
return <Suspense fallback={<Loading fullscreen={true} context="lazy" />}>{children}</Suspense>;
};
export default Lazy;