{ if (!opened) { opened = true showPopup(DropdownPopup, { title: label, items, icon }, tool, (result) => { if (result) setValue(result) opened = false }) } }} >
{#if selected}
{selected.label}
{:else}
{/if}