<script lang="ts">
	import AddProcess from '$lib/icons/Add-Process.svelte';
	import FileRect from '$lib/icons/File-rect.svelte';
	import ListIcon from '$lib/icons/List-icon.svelte';

	export let data;
	export let outline = true;
</script>

<div
	class=" inset-x-0 top-0 -z-10 h-full flex items-center justify-center bg-white shadow-lg ring-1 ring-gray-900/5"
>
	<div class="mx-auto flex justify-center max-w-7xl py-10 px-8 w-full">
		{#if data.user.admin}
			<div class="group relative rounded-lg p-6 text-sm leading-6 hover:bg-gray-50 w-1/4">
				<div
					class="flex h-11 w-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white"
				>
					<ListIcon class=" group-hover:text-indigo-600" />
				</div>
				<a href="/list" class="mt-6 block font-semibold text-gray-900">
					Vorgänge
					<span class="absolute inset-0"></span>
				</a>
				<p class="mt-1 text-gray-600">
					Verschaffe Dir einen Überblick über alle gespeicherten Tatorte.
				</p>
			</div>
		{/if}
		{#if data.user.admin}
			<div class="group relative rounded-lg p-6 text-sm leading-6 hover:bg-gray-50 w-1/4">
				<div
					class="flex h-11 w-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white"
				>
					<AddProcess class=" group-hover:text-indigo-600" />
				</div>
				<a href="/upload" class="mt-6 block font-semibold text-gray-900">
					Hinzufügen
					<span class="absolute inset-0"></span>
				</a>
				<p class="mt-1 text-gray-600">Fügen Sie einem Tatort Bilder hinzu.</p>
			</div>
		{/if}
		<div class="group relative rounded-lg p-6 text-sm leading-6 hover:bg-gray-50 w-1/4">
			<div
				class="flex h-11 w-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white"
			>
				<FileRect class=" group-hover:text-indigo-600" {outline} />
			</div>
			<a href="/user-management" class="mt-6 block font-semibold text-gray-900">
				Benutzerverwaltung
				<span class="absolute inset-0"></span>
			</a>
			<p class="mt-1 text-gray-600">Füge neue Benutzer hinzu oder entferne welche.</p>
		</div>
	</div>
</div>

<style>
</style>
