Skip to content

Modern Docker Management, Designed for Everyone

467 B
Raw Blame
<script lang="ts">
	import type { Snippet } from 'svelte';

	import { Button } from '#lib/components/ui/button/index.js';

	interface Props {
		cancelLabel: string;
		isLoading?: boolean;
		onCancel: () => void;
		primary: Snippet;
	}

	let { cancelLabel, isLoading = false, onCancel, primary }: Props = $props();
</script>

<Button type="button" class="flex-1" variant="outline" onclick={onCancel} disabled={isLoading}>
	{cancelLabel}
</Button>

{@render primary()}