Split event view into components

This commit is contained in:
Roman Krček
2025-07-12 14:40:46 +02:00
parent d6eee9c498
commit d945209465
8 changed files with 575 additions and 405 deletions

View File

@@ -0,0 +1,26 @@
<script lang="ts">
import GoogleAuthButton from '$lib/components/GoogleAuthButton.svelte';
let { loading, onSuccess, onError } = $props<{
loading: boolean;
onSuccess: () => void;
onError: (message: string) => void;
}>();
</script>
<div class="rounded-lg border border-gray-300 bg-white p-6 mb-4">
<div class="mb-4 flex items-center justify-between">
<h2 class="text-xl font-semibold text-gray-900">Google Account</h2>
<p class="text-sm text-gray-500">Required for syncing participants and sending emails</p>
</div>
{#if loading}
<div class="h-10 w-48 animate-pulse rounded bg-gray-200"></div>
{:else}
<GoogleAuthButton
size="small"
variant="secondary"
onSuccess={onSuccess}
onError={onError}
/>
{/if}
</div>