import { forwardRef, useState } from 'react' import { IconButton, Input, InputGroup, InputRightElement, type InputProps } from '@chakra-ui/react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons' // Input mot de passe avec bascule affichage clair/masqué (icône Font Awesome). export const PasswordInput = forwardRef((props, ref) => { const [visible, setVisible] = useState(false) return ( } size="sm" variant="ghost" tabIndex={-1} onClick={() => setVisible((v) => !v)} /> ) }) PasswordInput.displayName = 'PasswordInput'