diff options
Diffstat (limited to 'src/components/Title.tsx')
-rw-r--r-- | src/components/Title.tsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/Title.tsx b/src/components/Title.tsx new file mode 100644 index 0000000..99c7584 --- /dev/null +++ b/src/components/Title.tsx @@ -0,0 +1,17 @@ +export interface TitleProps { + setReady: (ready: boolean) => void; +} + +export const Title = ({ setReady }: TitleProps) => { + return ( + <div style={{ textAlign: "center" }}> + <h1>the abstraction engine</h1> + <p>a game based on the lambda calculus</p> + + <br /> + <hr /> + <br /> + <button onClick={() => setReady(true)}>ready</button> + </div> + ); +}; |