31 lines
486 B
Svelte
31 lines
486 B
Svelte
<script lang="ts">
|
|||
|
|
import type { Snippet } from 'svelte';
|
||
|
|
|
||
|
|
let {
|
||
|
|
actions,
|
||
|
|
children,
|
||
|
|
description = '',
|
||
|
|
title
|
||
|
|
}: {
|
||
|
|
actions?: Snippet;
|
||
|
|
children?: Snippet;
|
||
|
|
description?: string;
|
||
|
|
title: string;
|
||
|
|
} = $props();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<div class="sc-page-header">
|
||
|
|
<div>
|
||
|
|
<h1>{title}</h1>
|
||
|
|
{#if description}
|
||
|
|
<p>{description}</p>
|
||
|
|
{/if}
|
||
|
|
{@render children?.()}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{#if actions}
|
||
|
|
<div>
|
||
|
|
{@render actions()}
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
</div>
|