(isOpen = false)} /> {#if isOpen && (directoryId || fileBlob)}

더보기

{#snippet menuButton( Icon: Component, text: string, onclick: () => void, )} {/snippet} {#if directoryId} {@render menuButton(IconFolderOpen, "폴더에서 보기", () => goto( directoryId === "root" ? "/directory?from=file" : `/directory/${directoryId}?from=file`, ), )} {/if} {#if fileBlob} {@render menuButton(IconCloudDownload, "다운로드", () => { FileSaver.saveAs(fileBlob, filename); })} {/if}
{/if}