import { Avatar, Menu, Dropdown } from 'antd' import { DownOutlined } from '@ant-design/icons' import style from './style.module.scss' import { title } from 'constant' import { useSelector, useDispatch, postLogout } from 'store' import { useNavigate, RoutePath } from 'router' export const HeaderContent = () => { const user = useSelector(store => store.user.value) const dispatch = useDispatch() const navigate = useNavigate() const logout = async () => { await dispatch(postLogout()).unwrap() navigate(RoutePath.login, { replace: true }) } const items = [ { key: '1', label: