'use client'; import React from 'react'; import { Users, UserPlus } from 'lucide-react'; import { Card } from '@/ui/Card'; import { Stack } from '@/ui/Stack'; import { Heading } from '@/ui/Heading'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { Link } from '@/ui/Link'; import { Image } from '@/ui/Image'; import { Button } from '@/ui/Button'; import { routes } from '@/lib/routing/RouteConfig'; interface Friend { id: string; name: string; avatarUrl: string; country: string; } interface FriendsSidebarProps { friends: Friend[]; hasFriends: boolean; } export function FriendsSidebar({ friends, hasFriends }: FriendsSidebarProps) { return ( }> Friends {friends.length} friends {hasFriends ? ( {friends.slice(0, 6).map((friend) => ( {friend.name} {friend.name} {friend.country} ))} {friends.length > 6 && ( +{friends.length - 6} more )} ) : ( No friends yet )} ); }