scoresaber-reloadedv3/src/components/country-flag.tsx

17 lines
329 B
TypeScript
Raw Normal View History

2024-09-09 08:33:05 +00:00
type Props = {
country: string;
size?: number;
};
export default function CountryFlag({ country, size = 24 }: Props) {
return (
// eslint-disable-next-line @next/next/no-img-element
2024-09-13 12:45:04 +00:00
<img
alt="Player Country"
src={`/assets/flags/${country}.png`}
width={size * 2}
height={size}
/>
2024-09-09 08:33:05 +00:00
);
}