2026-08-04 15:17:15 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type { Snippet } from 'svelte';
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
actions,
|
|
|
|
|
children,
|
|
|
|
|
description = '',
|
2026-08-04 16:53:36 +02:00
|
|
|
subtitle = '',
|
2026-08-04 15:17:15 +02:00
|
|
|
title
|
|
|
|
|
}: {
|
|
|
|
|
actions?: Snippet;
|
|
|
|
|
children?: Snippet;
|
|
|
|
|
description?: string;
|
2026-08-04 16:53:36 +02:00
|
|
|
subtitle?: string;
|
2026-08-04 15:17:15 +02:00
|
|
|
title: string;
|
|
|
|
|
} = $props();
|
2026-08-04 16:53:36 +02:00
|
|
|
|
|
|
|
|
const supportingText = $derived(description || subtitle);
|
2026-08-04 15:17:15 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="sc-page-header">
|
|
|
|
|
<div>
|
|
|
|
|
<h1>{title}</h1>
|
2026-08-04 16:53:36 +02:00
|
|
|
{#if supportingText}
|
|
|
|
|
<p>{supportingText}</p>
|
2026-08-04 15:17:15 +02:00
|
|
|
{/if}
|
|
|
|
|
{@render children?.()}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if actions}
|
|
|
|
|
<div>
|
|
|
|
|
{@render actions()}
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|