Open History to see the last commit
1import type { EnvironmentId, ProjectId } from "@t3tools/contracts";
2import { createContext, type MouseEvent } from "react";
3
4export 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
15export const ComposerContextActionsContext = createContext<ComposerContextActions>({
16 environmentId: null,
17 expandImage: () => {},
18 expandVideo: () => {},
19 openFile: () => {},
20 openMention: () => {},
21 openPullRequest: () => {},
22});