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.

641 B
Raw Blame
import { Fragment, type ReactElement } from 'react'
import type { NativeChatMessage } from '../../../src/shared/native-chat-types'

type MobileNativeChatListRow = { item: NativeChatMessage; index: number }

export function mobileNativeChatListFooter(
  liveStatus: ReactElement | null,
  waitingRows: readonly MobileNativeChatListRow[],
  renderRow: (row: MobileNativeChatListRow) => ReactElement
): ReactElement | null {
  if (waitingRows.length === 0) {
    return liveStatus
  }
  return (
    <>
      {liveStatus}
      {waitingRows.map((row) => (
        <Fragment key={row.item.id}>{renderRow(row)}</Fragment>
      ))}
    </>
  )
}