summaryrefslogtreecommitdiff
path: root/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/App.tsx b/src/App.tsx
index 8666e34..3623384 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,5 +1,13 @@
+import { useState } from "react";
+import { ChooseArt } from "./pages/ChooseArt";
+import { Paint } from "./pages/Paint";
+
export const App: React.FC = () => {
- return <div>
- hello
- </div>
+ const [chosenArt, setChosenArt] = useState<undefined | string>(undefined);
+
+ if (chosenArt === undefined) {
+ return <ChooseArt artSubmissionCallback={setChosenArt} />
+ }
+
+ return <Paint art={chosenArt} />
}