{#if shown}
{ ui.importOpen = true; }} title="Back to the import" > {#if busy}
▸
{:else if importStatus.phase === "error" || (importStatus.phase === "applied" && importStatus.skipped)}
!
{:else}
✓
{/if} {#if importStatus.phase === "scanning"}
Reading your music —
{nfmt(importStatus.done)} of {importStatus.total ? nfmt(importStatus.total) : "…"}
folders
{:else if importStatus.phase === "scanned"}
Scan finished —
{nfmt(importStatus.done)} records
to review
{:else if importStatus.phase === "applying"}
Importing —
{nfmt(importStatus.done)} of {nfmt(importStatus.total)}
records copied
{:else if importStatus.phase === "applied"} {#if importStatus.skipped && !importStatus.done}
{nfmt(importStatus.skipped)} record{importStatus.skipped === 1 ? "" : "s"}
could not be imported —
click to see why
{:else if importStatus.skipped}
Imported
{nfmt(importStatus.done)} records
{importStatus.label ? ` · ${importStatus.label}` : ""} ·
{nfmt(importStatus.skipped)} left out
{:else}
Imported
{nfmt(importStatus.done)} records
{importStatus.label ? ` · ${importStatus.label}` : ""}
{/if} {:else if importStatus.error}
{importStatus.error}
Click to fix
{:else}
The import hit a problem —
click to see
{/if}
{/if}