import { Button, FormControl, FormField, FormItem, Input, FormLabel, FormMessage, } from "@marzneshin/components"; import { type FC } from "react"; import { useFormContext } from "react-hook-form"; import { useTranslation } from "react-i18next"; export const PasswordField: FC<{ change: boolean, handleChange: (s: boolean) => void }> = ({ change, handleChange }) => { const form = useFormContext(); const { t } = useTranslation(); return ( ( {t("password")} {change ? () : ( ) } )} /> ); };