"use client"; import { useState } from "react"; import { FollowButton } from "./FollowButton"; interface FollowStatsProps { userId: string; initialFollowersCount: number; initialFollowingCount: number; initialIsFollowing: boolean; currentUserId?: string; isOwnProfile: boolean; username: string; } export function FollowStats({ userId, initialFollowersCount, initialFollowingCount, initialIsFollowing, currentUserId, isOwnProfile, username, }: FollowStatsProps) { const [followersCount, setFollowersCount] = useState(initialFollowersCount); const handleFollowChange = (isFollowing: boolean, count: number) => { setFollowersCount(count); }; return (
{followersCount} followers {initialFollowingCount} following {currentUserId && !isOwnProfile && ( )}
); }