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.

828 B
Raw Blame
import type { Translate } from '../i18n/mobile-i18n'
import type { SendSheetState } from '../session/mobile-diff-review-screen-model'
import type { useMobileDiffReviewController } from '../session/use-mobile-diff-review-controller'

export function sendSheetMessage(
  t: Translate,
  controller: ReturnType<typeof useMobileDiffReviewController>,
  load: SendSheetState
): string | undefined {
  const count = controller.unsentComments.length
  return load.kind === 'loading'
    ? t('components.diffReviewDrawers.loadingSessions', 'Loading agent sessions...')
    : load.kind === 'error'
      ? load.message
      : count === 1
        ? t('components.diffReviewDrawers.unsentNotes_one', '{{count}} unsent notes', { count })
        : t('components.diffReviewDrawers.unsentNotes_other', '{{count}} unsent notes', { count })
}