<script lang="ts">
	import type { PageProps } from "./$types";

	const { data }: PageProps = $props();
</script>

<!-- svelte-ignore a11y_img_redundant_alt: That's not what 'picture' refers to... -->
<img src="/profile_picture_standin.jpeg" width="255" height="255" alt="Dummy profile picture" />
<p>Hej, {data.user.firstName} {data.user.lastName}!</p>

{#if data.user.role === "gardener"}
	<p>Tjek dine opgaver her: <a href="/assignments">Opgaver</a></p>
{/if}

<!-- TODO: Burde også vise noget for owners -->
