The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type { EnvironmentId, ProjectId } from "@t3tools/contracts"; |
| 2 | import { createContext, type MouseEvent } from "react"; |
| 3 | |
| 4 | export interface ComposerContextActions { |
| 5 | environmentId: EnvironmentId | null; |
| 6 | cwd?: string | undefined; |
| 7 | projectId?: ProjectId | undefined; |
| 8 | expandImage: (imageId: string) => void; |
| 9 | expandVideo: (fileId: string) => void; |
| 10 | openFile: (fileId: string) => void; |
| 11 | openMention: (path: string) => void; |
| 12 | openPullRequest: (event: MouseEvent<HTMLElement>, url: string) => void; |
| 13 | } |
| 14 | |
| 15 | export const ComposerContextActionsContext = createContext<ComposerContextActions>({ |
| 16 | environmentId: null, |
| 17 | expandImage: () => {}, |
| 18 | expandVideo: () => {}, |
| 19 | openFile: () => {}, |
| 20 | openMention: () => {}, |
| 21 | openPullRequest: () => {}, |
| 22 | }); |