{#if error}
{error}
{/if}
To:
(showSuggestions = true)} onblur={() => setTimeout(() => (showSuggestions = false), 200)} />
{#if showSuggestions && filteredAgents.length > 0}
{#each filteredAgents as agent}
selectAgent(agent.name)} >
{(agent.display_name || agent.name).charAt(0).toUpperCase()}
{agent.display_name || agent.name}
@{agent.name}
{/each}
{/if}
{#if showOptions}
{#if channelList.length > 0}
Channel:
None (DM)
{#each channelList as ch}
#{ch.name}
{/each}
{/if}
Priority:
Low (1)
Normal (5)
High (8)
Urgent (10)
{/if}
(showOptions = !showOptions)} > {showOptions ? 'Hide options' : 'Options'}
{#if sending} Sending... {:else}
Send {/if}