'use client'; import { EmptyState } from '@/ui/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 { SectionHeader } from '@/ui/SectionHeader'; import { Icon } from '@/ui/Icon'; import { Link } from '@/ui/Link'; import { Text } from '@/ui/Text'; import { Box } from '@/ui/Box'; import { UserPlus, Users } from 'lucide-react'; import React from 'react'; interface Friend { id: string; name: string; avatarUrl: string; country: string; } interface FriendsSidebarProps { friends: Friend[]; hasFriends: boolean; } export function FriendsSidebar({ friends, hasFriends }: FriendsSidebarProps) { return ( } /> {hasFriends ? ( {friends.slice(0, 6).map((friend) => ( ))} {friends.length > 6 && ( +{friends.length - 6} more )} ) : ( window.location.href = routes.public.drivers }} variant="minimal" /> )} ); }