{#if contentState.shouldRender || forceMount} {#snippet focusScope({ props: focusScopeProps })} { onEscapeKeydown(e); if (e.defaultPrevented) return; contentState.root.handleClose(); }} > { onInteractOutside(e); if (e.defaultPrevented) return; contentState.root.handleClose(); }} > {#if child} {#if contentState.root.opts.open.current} {/if} {@render child({ props: mergeProps(mergedProps, focusScopeProps), ...contentState.snippetProps, })} {:else} {@render children?.()} {/if} {/snippet} {/if}