diff --git a/frontend/src/lib/components/triggers/CaptureButton.svelte b/frontend/src/lib/components/triggers/CaptureButton.svelte index a5d89792ab..912c1173f0 100644 --- a/frontend/src/lib/components/triggers/CaptureButton.svelte +++ b/frontend/src/lib/components/triggers/CaptureButton.svelte @@ -13,7 +13,11 @@ import MqttIcon from '../icons/MqttIcon.svelte' import GoogleCloudIcon from '../icons/GoogleCloudIcon.svelte' - export let small = false + interface Props { + small?: boolean + } + + let { small = false }: Props = $props() const dispatch = createEventDispatcher() @@ -24,7 +28,7 @@ }) } - $: items = [ + let items = $derived([ { icon: Webhook, displayName: 'Webhook', @@ -79,11 +83,11 @@ action: () => handleClick('nats'), disabled: !$enterpriseLicense } - ] + ]) - + {#snippet buttonReplacement()} {#if small} {/if} - + {/snippet}