mirror of https://github.com/morpheus65535/bazarr
9 lines
243 B
TypeScript
9 lines
243 B
TypeScript
|
import { FunctionComponent, Suspense } from "react";
|
||
|
import { LoadingIndicator } from ".";
|
||
|
|
||
|
const Lazy: FunctionComponent = ({ children }) => {
|
||
|
return <Suspense fallback={<LoadingIndicator />}>{children}</Suspense>;
|
||
|
};
|
||
|
|
||
|
export default Lazy;
|