{#if selectedValues.length > 0}
{#each selectedValues as value}
{value.displayName}
{#if value.createdByName}
Created by
{value.createdByName}
{:else}
Official HuggingChat tool
{/if}
removeValue(value._id)} class="text-lg text-gray-600" >
{/each}
{/if} {#if selectedValues.length < maxValues}
{ inputValue = ev.currentTarget.value; debouncedFetch(inputValue); }} disabled={selectedValues.length >= maxValues} class="w-full rounded border border-gray-200 bg-gray-100 px-3 py-2" class:opacity-50={selectedValues.length >= maxValues} class:bg-gray-100={selectedValues.length >= maxValues} placeholder="Type to search tools..." /> {#if suggestions.length > 0}
{#each suggestions as suggestion}
addValue(suggestion)} class="w-full cursor-pointer px-3 py-2 text-left hover:bg-blue-500 hover:text-white" > {suggestion.displayName} {#if suggestion.createdByName}
by {suggestion.createdByName}
{/if}
{/each}
{/if}
{/if}