import { MinimalEmptyState } from '@/components/shared/state/EmptyState'; import { FriendItem } from '@/components/social/FriendItem'; import { FriendsList } from '@/components/social/FriendsList'; import { routes } from '@/lib/routing/RouteConfig'; import { Card } from '@/ui/Card'; import { Heading } from '@/ui/Heading'; import { Icon } from '@/ui/Icon'; import { Link } from '@/ui/Link'; import { Stack } from '@/ui/primitives/Stack'; import { Text } from '@/ui/Text'; import { UserPlus, Users } from 'lucide-react'; 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) => ( ))} {friends.length > 6 && ( +{friends.length - 6} more )} ) : ( window.location.href = routes.public.drivers }} /> )} ); }