blob: ff177fa0e906cada72576668398a34ab358007f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<script lang="ts">
interface Props {
organized?: boolean;
hoverable?: boolean;
tristate?: boolean;
dim?: boolean;
}
let { organized, hoverable = false, tristate = false, dim = false }: Props = $props();
</script>
{#if organized}
<span class:hoverable class="icon-gray icon-base icon-[material-symbols--check-circle]"></span>
{:else if organized === undefined || !tristate}
<span
class:hoverable
class="icon-gray dim icon-base icon-[material-symbols--check-circle-outline]"
></span>
{:else}
<span class:hoverable class:dim class="icon-gray icon-base icon-[material-symbols--unpublished]"
></span>
{/if}
|