<script lang="ts">
	import { dev } from '$app/environment';

	let { websiteID }: { websiteID: string } = $props();

	if (dev) console.log('[dev]: Umami tracking disabled');
</script>

<svelte:head>
	{#if !dev}
		<script defer src="https://sand.auvem.com/script.js" data-website-id={websiteID}></script>
	{:else}
		<script>
			window.umami = {
				track: (...args) => console.log('[dev]: Track called with:', ...args)
			};
		</script>
	{/if}
</svelte:head>
