diff --git a/src/components/avatar.tsx b/src/components/avatar.tsx index da3e1ac..0793c82 100644 --- a/src/components/avatar.tsx +++ b/src/components/avatar.tsx @@ -22,10 +22,11 @@ import { } from "@/components/ui/alert-dialog"; import Link from "next/link"; import { useTranslations } from 'next-intl'; +import { useAuth } from "@/hooks/auth"; export const AvatarButton = () => { const t = useTranslations('Dashboard'); - + const { logoutUser } = useAuth() return ( @@ -59,7 +60,7 @@ export const AvatarButton = () => { - + logoutUser()}/> ログアウト