import PropTypes from 'prop-types'; import { useState } from 'react'; // material-ui import { List, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; // assets import { LogoutOutlined, UserOutlined } from '@ant-design/icons'; import { useNavigate } from 'react-router'; // ==============================|| HEADER PROFILE - PROFILE TAB ||============================== // const ProfileTab = ({ handleLogout }) => { const [selectedIndex, setSelectedIndex] = useState(null); const navigate = useNavigate(); const handleListItemClick = (event, index) => { setSelectedIndex(index); if (index == 0) { navigate('/accountsettings'); } }; return ( handleListItemClick(event, 0)}> ); }; ProfileTab.propTypes = { handleLogout: PropTypes.func }; export default ProfileTab;