"use client"; import { motion, AnimatePresence } from "framer-motion"; import { Eye, EyeOff } from "lucide-react"; interface PasswordToggleProps { /** true while the password is visible as plain text */ shown: boolean; onToggle: () => void; /** The field it controls, e.g. "Password" or "Confirm New Password" — gives each toggle on a * form its own accessible name ("Show Password", "Hide Confirm New Password"). */ label: string; } /** * Show/hide control for a password input. Drop it inside the input's `relative` wrapper * (the input needs `pr-11`). Shared so every password field gets the same accessible name and * a real tap target: the whole 44px-wide, full-height strip at the field's right edge is the * button, not just the 16px icon. */ export default function PasswordToggle({ shown, onToggle, label }: PasswordToggleProps) { return ( ); }