Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

709 B
Raw Blame
import { CaseSensitive, GitBranch, Sparkles } from 'lucide-react-native'
import type { SmartModeIcon } from '../tasks/mobile-smart-source-modes'
import { TaskProviderLogo } from './TaskProviderLogo'

// Provider modes use brand SVGs; neutral modes use lucide glyphs.
export function SmartSourceModeIcon({ icon, color }: { icon: SmartModeIcon; color: string }) {
  if (icon.type === 'provider') {
    return <TaskProviderLogo provider={icon.provider} size={14} color={color} />
  }
  if (icon.name === 'sparkles') {
    return <Sparkles size={14} color={color} />
  }
  if (icon.name === 'git-branch') {
    return <GitBranch size={14} color={color} />
  }
  return <CaseSensitive size={14} color={color} />
}