{#if loading}
{:else if error}
{error}
loadAllImages()}>Retry
{:else if images.length === 0}
No photos found. Connect to FlashAir WiFi and tap the refresh button.
loadAllImages()}>Load Photos
{:else}
{/if}
Photos {cachedCount}/{totalCount > 0 ? totalCount : images.length}
{#if isAutoCaching}
{/if}
void saveToDevice()} disabled={selectedFile === undefined || saving}> {#if saving}
{:else}
{/if}
(showNewImage = !showNewImage)} aria-label="Toggle auto-show new images"> {#if showNewImage}
{:else}
{/if}
void clearAllCache()}>
showDebug = !showDebug}>
(isDark = !isDark)}> {#if isDark}
{:else}
{/if}
{#if showDebug}
{/if}