diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-10-04 17:37:22 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-10-04 17:37:22 -0700 |
| commit | 507c972ecafeceaf4f8962ad881f8fb50c9b86c1 (patch) | |
| tree | be89b29d1cb4924b70c32176c7c1f23dcaf65d85 /src/App.tsx | |
| parent | c2503078307759860736b4467507abf1e68c326d (diff) | |
| download | ansicolor-507c972ecafeceaf4f8962ad881f8fb50c9b86c1.tar.gz ansicolor-507c972ecafeceaf4f8962ad881f8fb50c9b86c1.zip | |
paste art
Diffstat (limited to 'src/App.tsx')
| -rw-r--r-- | src/App.tsx | 14 |
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} /> } |
