{#if !loading} {#if char === '/'}
{ const { type, data } = e; if (type === 'prompt') { insertTextHandler(data.content); } }} /> {:else if char === '#'}
{ const { type, data } = e; if (type === 'knowledge') { insertTextHandler(''); onUpload({ type: 'file', data: data }); } else if (type === 'web') { insertTextHandler(''); onUpload({ type: 'web', data: data }); } }} /> {:else if char === '@'}
{ const { type, data } = e; if (type === 'model') { insertTextHandler(''); onSelect({ type: 'model', data: data }); } }} /> {:else if char === '$'}
{ const { type, data } = e; if (type === 'skill') { command({ id: `${data.id}|${data.name}`, label: data.name }); onSelect({ type: 'skill', data: data }); } }} /> {/if} {:else}
{/if}