diff options
| author | Adam <[email protected]> | 2025-12-09 20:50:21 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-09 21:39:12 -0600 |
| commit | e2ebe560ead35d84eb7d1a6272bca3538e0b6928 (patch) | |
| tree | bf1e0808e8380339c16f6dced01e90bcab46b651 /packages/desktop/src | |
| parent | 6db822fd923f3561fe4cefffc95f4179b23ee87c (diff) | |
| download | opencode-e2ebe560ead35d84eb7d1a6272bca3538e0b6928.tar.gz opencode-e2ebe560ead35d84eb7d1a6272bca3538e0b6928.zip | |
feat: provider icon component
Diffstat (limited to 'packages/desktop/src')
| -rw-r--r-- | packages/desktop/src/components/prompt-input.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index 40bf96ae5..cbb261454 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -14,8 +14,10 @@ import { Button } from "@opencode-ai/ui/button" import { Icon } from "@opencode-ai/ui/icon" import { Tooltip } from "@opencode-ai/ui/tooltip" import { IconButton } from "@opencode-ai/ui/icon-button" +import { ProviderIcon } from "@opencode-ai/ui/provider-icon" import { Select } from "@opencode-ai/ui/select" import { getDirectory, getFilename } from "@opencode-ai/util/path" +import { IconName } from "../../../ui/src/components/provider-icons/types" interface PromptInputProps { class?: string @@ -460,7 +462,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { {(i) => ( <div class="w-full flex items-center justify-between gap-x-3"> <div class="flex items-center gap-x-2.5 text-text-muted grow min-w-0"> - <img src={`https://models.dev/logos/${i.provider.id}.svg`} class="size-6 p-0.5 shrink-0" /> + <ProviderIcon name={i.provider.id as IconName} class="size-6 p-0.5 shrink-0" /> <div class="flex gap-x-3 items-baseline flex-[1_0_0]"> <span class="text-14-medium text-text-strong overflow-hidden text-ellipsis">{i.name}</span> <Show when={false}> |
