import React, { ChangeEvent } from 'react'; import { useTranslation } from 'react-i18next'; import { ShieldCheckIcon, UserIcon, EyeIcon, EyeSlashIcon, InformationCircleIcon, } from '@heroicons/react/24/outline'; import type { ProfileFormData } from '../types'; interface SecurityTabProps { isActive: boolean; formData: ProfileFormData; showCurrentPassword: boolean; showNewPassword: boolean; showConfirmPassword: boolean; onChange: (e: ChangeEvent) => void; onToggleCurrentPassword: () => void; onToggleNewPassword: () => void; onToggleConfirmPassword: () => void; } const SecurityTab: React.FC = ({ isActive, formData, showCurrentPassword, showNewPassword, showConfirmPassword, onChange, onToggleCurrentPassword, onToggleNewPassword, onToggleConfirmPassword, }) => { const { t } = useTranslation(); if (!isActive) return null; return (

{t('profile.security', 'Security Settings')}

{t('profile.changePassword', 'Change Password')}

{t( 'profile.passwordChangeOptional', 'Leave password fields empty to update other settings without changing your password.' )}

{t( 'profile.passwordChangeNote', 'Password changes will be saved when you click "Save Changes" at the bottom of the form.' )}
); }; export default SecurityTab;