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.

813 B
Raw Blame
import { createContext } from 'react'
import type { NativeChatMessage } from '../../../../../src/shared/native-chat-types'
import type { MobileNativeChatImageSource } from '../visual/mobile-native-chat-image-preview'

export type MobileNativeChatViewedImage = { uri: string; label: string }

// Keep overlays above replaceable rows so echo/transcript swaps cannot close a selected image or actions sheet.
export type MobileNativeChatRowOverlays = {
  openImage: (image: MobileNativeChatViewedImage) => void
  openActions: (message: NativeChatMessage) => void
  /** Reads host image paths the phone cannot load itself. */
  imageSource?: MobileNativeChatImageSource
}

export const MobileNativeChatRowOverlaysContext = createContext<MobileNativeChatRowOverlays>({
  openImage: () => {},
  openActions: () => {}
})