<script lang="ts">
	export let active = false;

	$: title = active ? 'Save pending changes' : 'Save (no changes pending)';
</script>

<button type="submit" class:active class="btn-slate [&.active]:btn-blue" {title}>Save</button>
