(type)
| 30 | } |
| 31 | |
| 32 | const getInputType = (type) => { |
| 33 | switch (type) { |
| 34 | case 'string': |
| 35 | return 'text' |
| 36 | case 'password': |
| 37 | case 'url': |
| 38 | return 'password' |
| 39 | case 'number': |
| 40 | return 'number' |
| 41 | case 'email': |
| 42 | return 'email' |
| 43 | default: |
| 44 | return 'text' |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | const handleTogglePasswordVisibility = () => { |
| 49 | const inputElement = inputElementRef.current |