import { Avatar } from '@langgenius/dify-ui/avatar' import { Button } from '@langgenius/dify-ui/button' import { useSuspenseQuery } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' import { userProfileQueryOptions } from '@/features/account-profile/client' import { useRouter } from '@/next/navigation' import { useLogout } from '@/service/use-common' const UserInfo = () => { const router = useRouter() const { t } = useTranslation() const { data: userProfile } = useSuspenseQuery({ ...userProfileQueryOptions(), select: (data) => data.profile, }) const { mutateAsync: logout } = useLogout() const handleLogout = async () => { await logout() router.push('/signin') } return (