summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/Lazy.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Lazy.tsx')
-rw-r--r--frontend/src/components/Lazy.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/src/components/Lazy.tsx b/frontend/src/components/Lazy.tsx
new file mode 100644
index 000000000..a22dfd15a
--- /dev/null
+++ b/frontend/src/components/Lazy.tsx
@@ -0,0 +1,8 @@
+import { FunctionComponent, Suspense } from "react";
+import { LoadingIndicator } from ".";
+
+const Lazy: FunctionComponent = ({ children }) => {
+ return <Suspense fallback={<LoadingIndicator />}>{children}</Suspense>;
+};
+
+export default Lazy;