{#if submenuItem?.submenu} { if (onCloseParent) onCloseParent(); dispatch('close'); }} /> {/if}