Files
ColdBreeze-chat-web/src/routes/lazy.tsx
T
2022-11-25 21:59:41 +08:00

13 lines
309 B
TypeScript

import { PropsWithChildren, Suspense } from 'react';
import Loading from "../common/component/Loading";
type Props = {}
const Lazy = ({ children }: PropsWithChildren<Props>) => {
return (
<Suspense fallback={<Loading />}>
{children}
</Suspense>
);
};
export default Lazy;