{ if (phase === 'naming' && e.key === 'Enter') { e.preventDefault(); save(); } }} > {#if phase === 'recording'}
{#each waveformBars as h}
{/each}
{fmt(elapsed)}
{:else if phase === 'processing'}
{$t('voiceMemo.processing')}
{:else if phase === 'naming'} {#if transcript}

{transcript.slice(0, 140)}{transcript.length > 140 ? '…' : ''}

{/if}

{directory.split('/').pop()}

{:else if phase === 'done'}

{$t('voiceMemo.saved')}

{/if}