import { Calendar, MapPin } from 'iconoir-react'; import { Link } from 'react-router'; interface ProfileStat { label: string; value: number; } interface ProfileSidebarCardProps { displayName: string; username: string; bio: string; location: string; joinedLabel: string; stats: ProfileStat[]; isOwnProfile: boolean; isFollowing: boolean; onToggleFollow: () => void; } const ProfileSidebarCard = ({ displayName, username, bio, location, joinedLabel, stats, isOwnProfile, isFollowing, onToggleFollow, }: ProfileSidebarCardProps) => (

{displayName}

@{username}

{isOwnProfile ? ( Edit profile ) : ( )}

{bio}

{stats.map((stat) => (
{stat.label} {stat.value}
))}
); export default ProfileSidebarCard;