diff --git a/src/app/modules.tsx b/src/app/modules.tsx index 6b5a122..8a6eb43 100644 --- a/src/app/modules.tsx +++ b/src/app/modules.tsx @@ -1,4 +1,5 @@ import { MouseEventHandler } from "react"; +import React from 'react'; import Popup from "reactjs-popup"; export function Box({title, placeholder, id}: @@ -35,53 +36,13 @@ export function Button({title, className, onClickFunc}: ); } -export function Popup_Button({title, className}: - {title:string; className:string|undefined;}) { - - return( - - {title} - } - position="right center" - modal - nested> - {close => ( -
- -
{title}
-
- This is a popup example. -
-
- -
-
- )} -
- - - ); -} - -export function Output({id, text}: - {id:string; text:string}) { - - return( +export function Output({ id, text }: { id: string; text: string }) { + return (
-
- Output -
+
Output
-

+

+ {text}

diff --git a/src/app/page.tsx b/src/app/page.tsx index 530df20..9f1d499 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,7 @@ 'use client' -import { Box, Button, Output, Popup_Button } from "./modules.tsx"; -import { calculate_click, import_click, export_click } from "./scripts.ts" +import { Box, Button, Output } from "./modules"; +import { calculate_click, downloadLP, import_click } from "./scripts" export default function Home() { return ( @@ -18,9 +18,17 @@ export default function Home() { + title={"Objective"} + placeholder={"Objective"} + id="objective"/> + + */} - +