diff --git a/src/frontend/design-system/components/Form/FormPasswordInput.tsx b/src/frontend/design-system/components/Form/FormPasswordInput.tsx new file mode 100644 index 00000000..f34748b0 --- /dev/null +++ b/src/frontend/design-system/components/Form/FormPasswordInput.tsx @@ -0,0 +1,25 @@ +import { useLingui } from "@lingui/react"; +import { ISharedFormInput } from "./_types"; +import { generateFormArias, wrapLabelAndError } from "./_wrapForm"; +import { Input } from "./Styles"; + +interface IFormInput extends ISharedFormInput { + type?: "password" | "text"; +} + +export const FormPasswordInput = (formInput: IFormInput) => { + const { input, type, disabled, meta, placeholder, ...rest } = formInput; + const { _ } = useLingui(); + return wrapLabelAndError( + , + formInput + ); +};