blanchon's picture
Nerfies-style home, paper-style match header, prettier setup, dataset README
95e3d2a
<script lang="ts">
import { Badge } from '$lib/components/ui/badge';
import { cn } from '$lib/utils';
import MapPinIcon from 'phosphor-svelte/lib/MapPinIcon';
import { mapColorClasses } from '$lib/utils/map-colors';
import { prettyMap } from '$lib/utils/format';
interface Props {
map: string;
}
let { map }: Props = $props();
</script>
<Badge class={cn('gap-1 border capitalize', mapColorClasses(map))}>
<MapPinIcon size={11} weight="duotone" />{prettyMap(map)}
</Badge>