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.

731 B
Raw Blame
export type MobileSessionCreateWarningState = {
  source: string
  visible: string
}

export function createMobileSessionCreateWarningState(
  source: string
): MobileSessionCreateWarningState {
  return { source, visible: source }
}

export function reconcileMobileSessionCreateWarningState(
  current: MobileSessionCreateWarningState,
  source: string
): MobileSessionCreateWarningState {
  if (current.source === source) {
    return current
  }
  return createMobileSessionCreateWarningState(source)
}

export function dismissMobileSessionCreateWarningState(
  current: MobileSessionCreateWarningState
): MobileSessionCreateWarningState {
  if (!current.visible) {
    return current
  }
  return { ...current, visible: '' }
}