{#if show} {#if !loading} {#if command?.charAt(0) === '/'} { const { type, data } = e; if (type === 'prompt') { insertTextHandler(data.content); } }} /> {:else if (command?.charAt(0) === '#' && command.startsWith('#') && !command.includes('# ')) || ('\\#' === command.slice(0, 2) && command.startsWith('#') && !command.includes('# '))} { const { type, data } = e; if (type === 'knowledge') { insertTextHandler(''); onUpload({ type: 'file', data: data }); } else if (type === 'youtube') { insertTextHandler(''); onUpload({ type: 'youtube', data: data }); } else if (type === 'web') { insertTextHandler(''); onUpload({ type: 'web', data: data }); } }} /> {:else if command?.charAt(0) === '@'} { const { type, data } = e; if (type === 'model') { insertTextHandler(''); onSelect({ type: 'model', data: data }); } }} /> {/if} {:else}
{/if} {/if}