{#if ['/', '#', '@'].includes(command?.charAt(0))} {#if command?.charAt(0) === '/'} {:else if command?.charAt(0) === '#'} { console.log(e); uploadYoutubeTranscription(e.detail); }} on:url={(e) => { console.log(e); uploadWeb(e.detail); }} on:select={(e) => { console.log(e); files = [ ...files, { type: e?.detail?.type ?? 'file', ...e.detail, status: 'processed' } ]; dispatch('select'); }} /> {:else if command?.charAt(0) === '@'} { prompt = removeLastWordFromString(prompt, command); dispatch('select', { type: 'model', data: e.detail }); }} /> {/if} {/if}