Forward-port main's timeline epoch tracking, projected window selection, and schema updates into dev. Remove aider/amp/gemini providers and provider-history-compatibility layers that are no longer needed.
19 lines
741 B
TypeScript
19 lines
741 B
TypeScript
import { Bot } from "lucide-react-native";
|
|
import { ClaudeIcon } from "@/components/icons/claude-icon";
|
|
import { CodexIcon } from "@/components/icons/codex-icon";
|
|
import { CopilotIcon } from "@/components/icons/copilot-icon";
|
|
import { OpenCodeIcon } from "@/components/icons/opencode-icon";
|
|
import { PiIcon } from "@/components/icons/pi-icon";
|
|
|
|
const PROVIDER_ICONS: Record<string, typeof Bot> = {
|
|
claude: ClaudeIcon as unknown as typeof Bot,
|
|
codex: CodexIcon as unknown as typeof Bot,
|
|
copilot: CopilotIcon as unknown as typeof Bot,
|
|
opencode: OpenCodeIcon as unknown as typeof Bot,
|
|
pi: PiIcon as unknown as typeof Bot,
|
|
};
|
|
|
|
export function getProviderIcon(provider: string): typeof Bot {
|
|
return PROVIDER_ICONS[provider] ?? Bot;
|
|
}
|