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.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { useCallback } from 'react'
// Any accepted card action must retire the route’s held failure banner, which otherwise outlives its failed write.
export function useNativeChatAcceptedAction<Params extends unknown[]>(
action: (...params: Params) => Promise<boolean>,
onAccepted: () => void
): (...params: Params) => Promise<boolean> {
return useCallback(
async (...params: Params): Promise<boolean> => {
const accepted = await action(...params)
if (accepted) {
onAccepted()
}
return accepted
},
[action, onAccepted]
)
}