"use client"; import { Input } from "@/app/components/ui/input"; import { Label } from "@/app/components/ui/label"; import { useT } from "@/app/lib/i18n/MessagesProvider"; /** Password + confirmation inputs shared by the create form and "Set temporary password". */ export function PasswordFields(props: { password: string; confirmPassword: string; onPassword: (v: string) => void; onConfirmPassword: (v: string) => void; disabled?: boolean; passwordError?: string; confirmError?: string; }) { const t = useT(); return ( <>
{t("AdminPasswordHint")}
{props.passwordError &&{props.passwordError}
}{props.confirmError}
}