import { Shuffle } from 'lucide-react'
import { useTranslation } from 'react-i18next'
import { BALANCER_COUNTRY_CODE, FLAGS } from '@/shared/lib/countries'
import { cn } from '@/shared/lib/cn'
export function CountryFlag({ code, className }: { code: string | null | undefined; className?: string }) {
const { t } = useTranslation()
if (!code) return null
if (code.toUpperCase() === BALANCER_COUNTRY_CODE) {
const label = t('countries.balancer')
return (
)
}
const Flag = FLAGS[code.toUpperCase()]
if (!Flag) {
return {code.toUpperCase()}
}
return
}