From 395069f8cecd2deab2dfe1a2d7b97f379413e009 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sun, 16 Jan 2022 14:18:54 +0100
Subject: chore: add a spinner when content is loading

---
 src/components/Spinner/Spinner.tsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 src/components/Spinner/Spinner.tsx

(limited to 'src/components/Spinner/Spinner.tsx')

diff --git a/src/components/Spinner/Spinner.tsx b/src/components/Spinner/Spinner.tsx
new file mode 100644
index 0000000..cfa5717
--- /dev/null
+++ b/src/components/Spinner/Spinner.tsx
@@ -0,0 +1,15 @@
+import { t } from '@lingui/macro';
+import styles from './Spinner.module.scss';
+
+const Spinner = () => {
+  return (
+    <div className={styles.wrapper}>
+      <div className={styles.ball}></div>
+      <div className={styles.ball}></div>
+      <div className={styles.ball}></div>
+      <div className={styles.text}>{t`Loading...`}</div>
+    </div>
+  );
+};
+
+export default Spinner;
-- 
cgit v1.2.3

