{ if (name.trim() === '' || content.trim() === '') { toast.error($i18n.t('Please fill in all fields.')); name = name.trim(); content = content.trim(); return; } dispatch('submit', { name, content }); show = false; name = ''; content = ''; }} >
{#if voiceInput}
{ voiceInput = false; }} on:confirm={(e) => { const { text, filename } = e.detail; content = `${content}${text} `; voiceInput = false; }} />
{:else} {/if}