import { useRouter } from 'next/navigation' import { useDispatch } from 'react-redux' import { userLogout, showAlert } from 'store' import { Icons } from 'components' export default function Logout() { //? Assets const dispatch = useDispatch() const router = useRouter() //? Handlers const handleLogout = () => { router.push('/') dispatch(userLogout()) dispatch( showAlert({ status: 'success', title: '退出登录成功', }) ) } //? Render(s) return ( ) }