File size: 485 Bytes
91677d6
 
95e3d2a
 
91677d6
 
 
 
 
 
 
 
 
95e3d2a
15d8696
91677d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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>