Open History to see the last commit
1import { createContext, type ReactNode } from "react";
2
3export const NativeWorkspaceModeContext = createContext(false);
4/** Retained tabs must not update another tab's navigation options. */
5export const NativeWorkspaceTabActivityContext = createContext<{
6 readonly active: boolean;
7 readonly isActive: () => boolean;
8} | null>(null);
9export const NativePrimaryColumnContext = createContext<{
10 readonly selectedThreadKey: string | null;
11 readonly selectedPullRequestKey: string | null;
12} | null>(null);
13export const NativeWorkspaceInspectorContext = createContext<{
14 readonly render: (() => ReactNode) | undefined;
15 readonly visible: boolean;
16}>({ render: undefined, visible: false });