21 lines
845 B
TypeScript
21 lines
845 B
TypeScript
import { Bot } from "lucide-react-native";
|
|
import { AiderIcon } from "@/components/icons/aider-icon";
|
|
import { AmpIcon } from "@/components/icons/amp-icon";
|
|
import { ClaudeIcon } from "@/components/icons/claude-icon";
|
|
import { CodexIcon } from "@/components/icons/codex-icon";
|
|
import { GeminiIcon } from "@/components/icons/gemini-icon";
|
|
import { OpenCodeIcon } from "@/components/icons/opencode-icon";
|
|
|
|
const PROVIDER_ICONS: Record<string, typeof Bot> = {
|
|
claude: ClaudeIcon as unknown as typeof Bot,
|
|
codex: CodexIcon as unknown as typeof Bot,
|
|
gemini: GeminiIcon as unknown as typeof Bot,
|
|
amp: AmpIcon as unknown as typeof Bot,
|
|
aider: AiderIcon as unknown as typeof Bot,
|
|
opencode: OpenCodeIcon as unknown as typeof Bot,
|
|
};
|
|
|
|
export function getProviderIcon(provider: string): typeof Bot {
|
|
return PROVIDER_ICONS[provider] ?? Bot;
|
|
}
|