diff --git a/src/components/Login/LoginInput.tsx b/src/components/Login/LoginInput.tsx new file mode 100644 index 00000000..c9d39ebe --- /dev/null +++ b/src/components/Login/LoginInput.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import '../../styles/Login.scss'; + +/** -------Props------- + * type: string, if password, hides the input with dots; also used as the header for the input + * waiting: boolean that disables the input if true + * data: value inside the input + * onChange: function to be called when input changes + */ +interface LoginInputProps { + type: string; + waiting: boolean; + data: string; + onChange: (value: string) => void; +} + +const LoginInput = function ({ + type, waiting, data, onChange, +}: LoginInputProps) { + return ( +