import React from 'react'; import Image from 'next/image'; import Link from 'next/link'; import { useServices } from '@/lib/services/ServiceProvider'; interface Friend { id: string; name: string; country: string; } interface FriendPillProps { friend: Friend; } function getCountryFlag(countryCode: string): string { const code = countryCode.toUpperCase(); if (code.length === 2) { const codePoints = [...code].map(char => 127397 + char.charCodeAt(0)); return String.fromCodePoint(...codePoints); } return '🏁'; } export default function FriendPill({ friend }: FriendPillProps) { const { mediaService } = useServices(); return (