This commit is contained in:
2026-04-07 10:38:28 +03:30
parent aa9ed69dd2
commit 8bcd1c2951
99 changed files with 3357 additions and 178 deletions

View File

@@ -0,0 +1,25 @@
interface CountryFlagProps {
flagImage?: string | null;
flagEmoji?: string | null;
countryName: string;
size?: 'sm' | 'md' | 'lg';
}
export default function CountryFlag({
flagImage,
flagEmoji,
countryName,
size = 'md',
}: CountryFlagProps) {
const sizeClasses = {
sm: 'text-lg',
md: 'text-2xl',
lg: 'text-4xl',
};
return (
<span className={sizeClasses[size]} title={countryName}>
{flagEmoji || ''}
</span>
);
}