{#if open && file} { onrefresh?.(); // If the editor was auto-opened for an Office doc, closing it should // dismiss the whole viewer (there's nothing to preview behind it). if (kind === 'other') close(); }} /> {/if}