{#if loading}
{:else}
{dayjs(note.created_at / 1000000).calendar()}
You
{ note.data.html = content.html; note.data.md = content.md; }} />
{/if}
{#if voiceInput}
{ voiceInput = false; }} onConfirm={(data) => { console.log(data); }} />
{:else}
{ try { let stream = await navigator.mediaDevices .getUserMedia({ audio: true }) .catch(function (err) { toast.error( $i18n.t(`Permission denied when accessing microphone: {{error}}`, { error: err }) ); return null; }); if (stream) { voiceInput = true; const tracks = stream.getTracks(); tracks.forEach((track) => track.stop()); } stream = null; } catch { toast.error($i18n.t('Permission denied when accessing microphone')); } }} >
{/if}