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.

1.1 KB
Raw Blame
import {
  hostStackHostRoute,
  navigateToHostStackRoute,
  type HostStackHostRoute,
  type HostStackNavigationController,
  type HostStackNavigationState,
  type HostStackRootNavigation,
  type HostStackRouteTarget,
  type HostStackRouter
} from '../navigation/host-stack-navigation'

export type MobileHostEditHostRoute = HostStackHostRoute
export type MobileHostEditNavigationState = HostStackNavigationState
export type MobileHostEditRootNavigation = HostStackRootNavigation
export type MobileHostEditRouter = HostStackRouter
export type MobileHostEditNavigationController = HostStackNavigationController

export function mobileHostEditHostRoute(hostId: string): MobileHostEditHostRoute {
  return hostStackHostRoute(hostId)
}

export function mobileHostEditRouteTarget(hostId: string): HostStackRouteTarget {
  return {
    name: '[hostId]/edit',
    params: { hostId }
  }
}

export function navigateToMobileHostEdit(
  navigation: MobileHostEditRootNavigation,
  router: MobileHostEditRouter,
  hostId: string
): MobileHostEditNavigationController {
  return navigateToHostStackRoute(navigation, router, hostId, mobileHostEditRouteTarget(hostId))
}