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.

555 B
Raw Blame
export type LegacyNotificationOptInParams = {
  hostId?: string | string[]
}

export type LegacyNotificationOptInDestination = {
  pathname: '/mobile-onboarding'
  params: { steps: 'notifications'; hostId?: string }
}

export function legacyNotificationOptInDestination(
  params: LegacyNotificationOptInParams
): LegacyNotificationOptInDestination {
  const hostId = Array.isArray(params.hostId) ? params.hostId[0] : params.hostId
  return {
    pathname: '/mobile-onboarding',
    params: { steps: 'notifications', ...(hostId ? { hostId } : {}) }
  }
}