2024-04-09 18:46:01 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import { Button } from '$lib/components/ui/button';
|
|
|
|
import * as Tooltip from '$lib/components/ui/tooltip/index.js';
|
2024-04-18 15:30:19 +02:00
|
|
|
|
|
|
|
import { selectedFiles } from '$lib/stores';
|
2024-04-09 18:46:01 +02:00
|
|
|
</script>
|
|
|
|
|
2024-04-18 15:30:19 +02:00
|
|
|
<Tooltip.Root openDelay={300}>
|
2024-04-09 18:46:01 +02:00
|
|
|
<Tooltip.Trigger asChild let:builder>
|
2024-04-18 15:30:19 +02:00
|
|
|
<Button
|
|
|
|
builders={[builder]}
|
|
|
|
variant="ghost"
|
|
|
|
class="h-fit px-1 py-1.5"
|
|
|
|
disabled={$selectedFiles.size == 0}
|
2024-04-18 15:58:46 +02:00
|
|
|
on:click
|
2024-04-18 15:30:19 +02:00
|
|
|
>
|
2024-04-09 18:46:01 +02:00
|
|
|
<slot name="icon" />
|
|
|
|
</Button>
|
|
|
|
</Tooltip.Trigger>
|
|
|
|
<Tooltip.Content side="right">
|
|
|
|
<slot name="tooltip" />
|
|
|
|
</Tooltip.Content>
|
|
|
|
</Tooltip.Root>
|