diff --git a/src/components/App/App.css b/src/components/App/App.css
index 42bedec..b1cc0a6 100644
--- a/src/components/App/App.css
+++ b/src/components/App/App.css
@@ -25,7 +25,6 @@ pre,
code {
font-family: "IBM Plex Mono", "Courier New", monospace;
font-size: 14px;
- color: "black";
}
pre {
diff --git a/src/components/App/App.tsx b/src/components/App/App.tsx
index 03455db..1dec31c 100644
--- a/src/components/App/App.tsx
+++ b/src/components/App/App.tsx
@@ -6,7 +6,11 @@ import Toolbar from "../Toolbar/Toolbar";
import IconGrid from "../IconGrid/IconGrid";
import Footer from "../Footer/Footer";
import ErrorBoundary from "../ErrorBoundary/ErrorBoundary";
-import Warn from "../Warn/Warn";
+import Notice from "../Notice/Notice";
+
+const errorFallback = ;
+// const waitingFallback = ;
+const waitingFallback = ;
const App: React.FC = () => {
return (
@@ -14,8 +18,8 @@ const App: React.FC = () => {
- }>
- Loading...}>
+
+
diff --git a/src/components/Warn/Warn.tsx b/src/components/Notice/Notice.tsx
similarity index 55%
rename from src/components/Warn/Warn.tsx
rename to src/components/Notice/Notice.tsx
index 8b213de..a89d20f 100644
--- a/src/components/Warn/Warn.tsx
+++ b/src/components/Notice/Notice.tsx
@@ -4,13 +4,14 @@ import { useRecoilValue } from "recoil";
import { isDarkThemeSelector } from "../../state/selectors";
import { searchQueryAtom } from "../../state/atoms";
-import { SmileyXEyes } from "phosphor-react";
+import { HourglassMedium, Question, SmileyXEyes } from "phosphor-react";
-interface WarnProps {
+interface NoticeProps {
message?: string;
+ type?: "wait" | "help" | "warn" | "none";
}
-const Warn: React.FC = ({ message }) => {
+const Notice: React.FC = ({ message, type = "warn", children }) => {
const isDark = useRecoilValue(isDarkThemeSelector);
const query = useRecoilValue(searchQueryAtom);
@@ -22,15 +23,24 @@ const Warn: React.FC = ({ message }) => {
animate={{ opacity: 1 }}
transition={{ duration: 0.5 }}
>
-
+ {type === "wait" && (
+
+ )}
+ {type === "help" && (
+
+ )}
+ {type === "warn" && (
+
+ )}
{message ?? (
No results for "{query}"
)}
+ {children}
);
};
-export default Warn;
+export default Notice;