<script lang="ts">
	import { LOCATIONS } from '$lib/locations-object.svelte';

	let { code } = $props<{ code: string | null | undefined }>();

	const location = $derived(LOCATIONS.getName(code));
	const displayName = $derived(location?.n ?? code ?? '');
</script>

{displayName}
