diff --git a/src/components/FollowButton/index.tsx b/src/components/FollowButton/index.tsx
index d44ae8c..7896c0c 100644
--- a/src/components/FollowButton/index.tsx
+++ b/src/components/FollowButton/index.tsx
@@ -1,3 +1,14 @@
+import {
+ AlertDialog,
+ AlertDialogAction,
+ AlertDialogCancel,
+ AlertDialogContent,
+ AlertDialogDescription,
+ AlertDialogFooter,
+ AlertDialogHeader,
+ AlertDialogTitle,
+ AlertDialogTrigger
+} from '@/components/ui/alert-dialog'
import { Button } from '@/components/ui/button'
import { useToast } from '@/hooks'
import { useFollowList } from '@/providers/FollowListProvider'
@@ -12,6 +23,7 @@ export default function FollowButton({ pubkey }: { pubkey: string }) {
const { pubkey: accountPubkey, checkLogin } = useNostr()
const { followings, follow, unfollow } = useFollowList()
const [updating, setUpdating] = useState(false)
+ const [hover, setHover] = useState(false)
const isFollowing = useMemo(() => followings.includes(pubkey), [followings, pubkey])
if (!accountPubkey || (pubkey && pubkey === accountPubkey)) return null
@@ -57,16 +69,41 @@ export default function FollowButton({ pubkey }: { pubkey: string }) {
}
return isFollowing ? (
-
+
+
+
+
+
+
+ {t('Unfollow')}?
+
+ {t('Are you sure you want to unfollow this user?')}
+
+
+
+ {t('Cancel')}
+
+ {t('Unfollow')}
+
+
+
+
) : (
-