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.

695 B
Raw Blame
import { Monitor, Server } from 'lucide-react-native'
import { isRemoteExecutionHostId } from '../../../src/shared/execution-host'
import { colors } from '../theme/mobile-theme'
import { useMobileColorScheme } from '../theme/use-mobile-color-scheme'

/** The desktop's own machine is a monitor, any other host a server, as on the desktop's run targets. */
export function HostKindIcon({ hostId, size }: { hostId: string | undefined; size: number }) {
  useMobileColorScheme()
  // An absent id reads as local: an older host's row may omit it (its label pass fills it in).
  const Icon = isRemoteExecutionHostId(hostId) ? Server : Monitor
  return <Icon size={size} color={colors.textMuted} />
}