summaryrefslogtreecommitdiff
path: root/src/App.tsx
blob: 3623384202b296913c48b02e213eb88525df4dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { useState } from "react";
import { ChooseArt } from "./pages/ChooseArt";
import { Paint } from "./pages/Paint";

export const App: React.FC = () => {
    const [chosenArt, setChosenArt] = useState<undefined | string>(undefined);

    if (chosenArt === undefined) {
        return <ChooseArt artSubmissionCallback={setChosenArt} />
    }

    return <Paint art={chosenArt} />
}