blob: 3b89ba713626fad66299e1221dc968dc5cd85a2a (
plain) (
blame)
1
2
3
4
5
6
7
|
<script lang="ts">
let { pending = false }: { pending?: boolean } = $props();
let title = $derived(pending ? 'Save pending changes' : 'Save (no changes pending)');
</script>
<button type="submit" class:pending class="btn-slate [&.pending]:btn-blue" {title}>Save</button>
|