2024-08-12 11:00:25 +02:00
|
|
|
<script lang="ts">
|
2025-01-19 15:41:16 +01:00
|
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
2025-05-21 12:15:27 -05:00
|
|
|
import { cn, type WithElementRef } from '$lib/utils/style.js';
|
2024-08-12 11:00:25 +02:00
|
|
|
|
2025-05-21 12:15:27 -05:00
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
class: className,
|
|
|
|
|
children,
|
|
|
|
|
...restProps
|
|
|
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
2024-08-12 11:00:25 +02:00
|
|
|
</script>
|
|
|
|
|
|
2025-05-21 12:15:27 -05:00
|
|
|
<div
|
|
|
|
|
bind:this={ref}
|
|
|
|
|
data-slot="alert-dialog-header"
|
|
|
|
|
class={cn('flex flex-col gap-2 text-center sm:text-left', className)}
|
|
|
|
|
{...restProps}
|
|
|
|
|
>
|
|
|
|
|
{@render children?.()}
|
2024-08-12 11:00:25 +02:00
|
|
|
</div>
|