{ if (props) fitPopup(props) }} on:keydown={(evt) => { if (props) handleKeydown(evt) }} /> {#if props} {#await getResource(props.component)} {:then component}