{#if visible}
dispatch('close')} on:keydown={(e) => e.key === 'Escape' && dispatch('close')}>
{/if}