import useUser, { logout } from '@/web/api/hooks/useUser' import { toHttps } from '@/web/utils/common' import toast from 'react-hot-toast' import { useTranslation } from 'react-i18next' const UserCard = () => { const { data: user } = useUser() const { t } = useTranslation() return (
{user?.profile?.nickname || ''}
{(user?.profile?.signature || user?.profile?.vipType) && (
{user?.profile?.vipType ? ( ) : null} {user?.profile?.signature}
)}
) } export default UserCard