import { Image, StyleSheet, Text, View } from 'react-native'
import { Terminal } from 'lucide-react-native'
import Svg, { Defs, G, LinearGradient, Path, Stop } from 'react-native-svg'
import { colors } from '../theme/mobile-theme'
import { MOBILE_AGENT_CATALOG } from '../tasks/mobile-agent-catalog'
import { ClaudeIcon, OpenAIIcon } from './AgentIcons'
// Why: agent branding should match the desktop/new-worktree picker everywhere
// mobile lets users choose the agent that will own a workspace.
function PiIcon({ size = 16 }: { size?: number }) {
return (
)
}
function OmpIcon({ size = 16 }: { size?: number }) {
// SVG sourced from omp.sh's transparent homepage mark. Why: react-native-svg
// does not support the homepage's CSS oklch stops, so use its favicon hex stops.
return (
)
}
function AiderIcon({ size = 16 }: { size?: number }) {
return (
)
}
function FaviconIcon({ domain, size = 16 }: { domain: string; size?: number }) {
return (
)
}
function AgentLetterIcon({ letter, size = 16 }: { letter: string; size?: number }) {
return (
{letter}
)
}
export function MobileAgentIcon({ agentId, size = 16 }: { agentId: string; size?: number }) {
if (agentId === 'claude' || agentId === 'claude-agent-teams') {
return
}
if (agentId === 'codex') {
return
}
if (agentId === 'pi') {
return
}
if (agentId === 'omp') {
return
}
if (agentId === 'aider') {
return
}
if (agentId === '__blank__' || agentId === 'blank') {
return
}
const agent = MOBILE_AGENT_CATALOG.find((entry) => entry.id === agentId)
if (agent?.faviconDomain) {
return
}
const label = agent?.label ?? agentId
return
}
const styles = StyleSheet.create({
letterIcon: {
alignItems: 'center',
justifyContent: 'center'
},
letterIconText: {
fontWeight: '700'
}
})