mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
20 lines
354 B
TypeScript
20 lines
354 B
TypeScript
import { asset } from '@blitzkit/core/src/blitzkit/asset';
|
|
|
|
interface FlagProps {
|
|
nation: string;
|
|
}
|
|
|
|
export function Flag({ nation }: FlagProps) {
|
|
return (
|
|
<div
|
|
style={{
|
|
width: 22,
|
|
height: 22,
|
|
overflow: 'hidden',
|
|
}}
|
|
>
|
|
<img alt={nation} src={asset(`flags/circle/${nation}.webp`)} />
|
|
</div>
|
|
);
|
|
}
|