diff --git a/src/components/HeaderItem.tsx b/src/components/HeaderItem.tsx index 772a2cb..3852119 100644 --- a/src/components/HeaderItem.tsx +++ b/src/components/HeaderItem.tsx @@ -1,30 +1,29 @@ import Link from "next/link" -import type { MouseEventHandler } from "react" type HeaderItemProps = { content: string, linkTo: string, - onClick?: MouseEventHandler, // don't even wanna bother newWindow?: boolean } -export default function HeaderItem(props: HeaderItemProps) { - if (props.onClick) { - return ( - <> - - - ) - } else { - return ( -

- - {props.content} - -

- ) - } +export default function HeaderItem({ + content, + linkTo, + newWindow +}: HeaderItemProps) { + return ( + + {content} + + // <> + // + // + ) } \ No newline at end of file diff --git a/src/components/InputOption.tsx b/src/components/InputOption.tsx deleted file mode 100644 index fa37822..0000000 --- a/src/components/InputOption.tsx +++ /dev/null @@ -1,19 +0,0 @@ -type InputOptionProps = { - label: string, - inputName: string, - isTextArea?: boolean -} - -export default function InputOption(props: InputOptionProps) { - return ( -
-
- { - props.isTextArea ? -