2024-08-12 11:00:25 +02:00
|
|
|
<script lang="ts">
|
2025-01-19 15:41:16 +01:00
|
|
|
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
|
|
|
import { buttonVariants } from '$lib/components/ui/button/index.js';
|
|
|
|
|
import { cn } 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,
|
|
|
|
|
...restProps
|
|
|
|
|
}: AlertDialogPrimitive.CancelProps = $props();
|
2024-08-12 11:00:25 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<AlertDialogPrimitive.Cancel
|
2025-05-21 12:15:27 -05:00
|
|
|
bind:ref
|
|
|
|
|
data-slot="alert-dialog-cancel"
|
|
|
|
|
class={cn(buttonVariants({ variant: 'outline' }), className)}
|
|
|
|
|
{...restProps}
|
|
|
|
|
/>
|