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

12 lines
316 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
<img alt="Player Country" src={`/assets/flags/${country}.png`} className={`h-[${size}px] w-[${size * 2}px]`} />
);
}