import { ROUTE_LOGIN, ROUTE_PROFILE } from '@/constants/routes';
import { clearAllData, clearSessionData, removeToken } from '@/utils/storage';
import {
LogoutOutlined,
SettingOutlined,
UserOutlined,
} from '@ant-design/icons';
import { history, useIntl } from '@umijs/max';
import { Dropdown } from 'antd';
// Avatar component with i18n support
export const AvatarDropdown = ({
currentUserProfile,
}: {
currentUserProfile?: MasterModel.UserResponse;
}) => {
const intl = useIntl();
return (