diff --git a/packages/fakeyou.com/src/components/common/Input.tsx b/packages/fakeyou.com/src/components/common/Input.tsx new file mode 100644 index 0000000000..7b0b631faa --- /dev/null +++ b/packages/fakeyou.com/src/components/common/Input.tsx @@ -0,0 +1,36 @@ +import React from "react"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { IconDefinition } from "@fortawesome/fontawesome-svg-core"; + +interface InputProps { + onChange?: (event: React.ChangeEvent) => void; + value?: string; + icon?: IconDefinition; + label?: string; + placeholder?: string; + type?: string; +} + +export default function Input(props: InputProps) { + return ( +
+ {props.label && } + +
+ {props.icon && ( + + )} + +
+
+ ); +}