import React from "react"; import RevealPasswordToggle from "src/components/password/RevealPasswordToggle"; import { InputWithAdornment } from "src/components/ui/custom/input-with-adornment"; type PasswordInputProps = Omit< React.InputHTMLAttributes, "type" | "onChange" | "value" > & { value: string; onChange?: (value: string) => void; }; export default function PasswordInput({ onChange, placeholder, value, ...restProps }: PasswordInputProps) { const [passwordVisible, setPasswordVisible] = React.useState(false); return ( onChange && onChange(e.target.value)} placeholder={placeholder} {...restProps} endAdornment={ } /> ); }