summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/components/DeleteButton.svelte
blob: 8f5f1161a07c7c02beb469f0fd6e8b3c9d12bb8c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                          
<script>
	import { accelerator } from '$lib/Shortcuts';

	export let prominent = false;
</script>

<button
	type="button"
	class={prominent ? 'btn-rose' : 'btn-slate hover:bg-rose-700'}
	title="Delete forever"
	on:click
	use:accelerator={'Delete'}
>
	<span class="icon-base icon-[material-symbols--delete-forever]" />
</button>