Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

392 B
Raw Blame
import { createContext } from "react";

/**
 * Lets a reply's interactive blocks send a message as the user. Bot and group chats
 * provide it; elsewhere choice cards fall back to filling the composer.
 */
export interface ChatReply {
  readonly send: (text: string) => Promise<boolean>;
  readonly disabled: boolean;
}

export const ChatReplyContext = createContext<ChatReply | null>(null);