onSelect(option.id)} onkeydown={onKeyDown} onmouseenter={onMouseEnter} role="option" tabindex="0" title={loadTitle} >
e.stopPropagation()} > {#if isFav}
modelsStore.toggleFavorite(option.model)} tooltip="Remove from favorites" /> {:else}
modelsStore.toggleFavorite(option.model)} tooltip="Add to favorites" /> {/if} {#if isLoaded && onInfoClick}
onInfoClick(option.model)} tooltip="Model information" /> {/if}
{#if isLoading}
{:else if isFailed}
modelsStore.status.load(option.model)} stopPropagationOnClick tooltip="Retry loading model" />
{:else if isSleeping}
{ e?.stopPropagation(); modelsStore.status.unload(option.model); }} tooltip="Unload model" />
{:else if isLoaded}
modelsStore.status.unload(option.model)} stopPropagationOnClick tooltip="Unload model" />
{:else}
modelsStore.status.load(option.model)} stopPropagationOnClick tooltip="Load model" />
{/if}
{#if isLoading}
{/if}