import { useState } from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Skeleton } from '@/components/ui/skeleton'; import { useFollowing, useFollowers, useFollowActions } from '@/hooks/useFollowing'; import { useAuthor } from '@/hooks/useAuthor'; import { useCurrentUser } from '@/hooks/useCurrentUser'; import { genUserName } from '@/lib/genUserName'; import { Users, UserPlus, UserMinus, Loader2 } from 'lucide-react'; function FollowingUserCard({ pubkey, onUnfollow }: { pubkey: string; onUnfollow: (pubkey: string) => void }) { const author = useAuthor(pubkey); const metadata = author.data?.metadata; const displayName = metadata?.name ?? genUserName(pubkey); const [isUnfollowing, setIsUnfollowing] = useState(false); const handleUnfollow = async () => { setIsUnfollowing(true); await onUnfollow(pubkey); setIsUnfollowing(false); }; return (
You're not following anyone yet
Follow skaters to see their spots with ✅ VERIFIED badges
✅ Trust Badges Active: Spots created by people you follow will now show VERIFIED badges. Spots by their friends will show TRUSTED badges.
No followers yet
Share your Nostr profile to gain followers!
✅ VERIFIED (Green): Spots created by people you directly follow
🟡 TRUSTED (Yellow): Spots created by people your friends follow (2 hops)
⚪ Unverified: Spots by users with no connection to your network
💡 Tip: Follow active skateboarders to see more verified spots and build your trust network!