{
setVisible(true);
}}
onmouseleave={() => {
setVisible(false);
}}
class="txt-id"
style:cursor="pointer"
aria-label={ariaLabel}
onclick={async event => {
event.stopPropagation();
await copy();
setVisible(true);
}}
role="button"
tabindex="0">
{#if shorten}
{formatOid(id)}
{:else}
{id}
{/if}
{#if visible}
{tooltip}
{/if}