forked from Txio-labs/txio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
43 lines (37 loc) · 1.17 KB
/
Copy pathtypes.ts
File metadata and controls
43 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { CollectionNode, EnvironmentVariable, HistoryItem, Workspace } from '../../types';
export interface SidebarCommonProps {
currentWorkspace: Workspace;
activeTabId: string | null;
activeTabType?: string;
}
export interface SidebarNavProps {
activeMode: string;
onModeChange: (mode: string) => void;
activeTabType?: string;
}
export interface WorkspaceHeaderProps {
currentWorkspace: Workspace;
workspaces: Workspace[];
isDropdownOpen: boolean;
onToggleDropdown: () => void;
onSwitchWorkspace: (ws: Workspace) => void;
onCreateWorkspace: (name: string) => void;
onOpenSettings: () => void;
}
export interface CollectionTreeProps {
collections: CollectionNode[];
activeTabId: string | null;
onToggleExpand: (nodeId: string) => void;
onSelectCollectionRequest: (node: CollectionNode) => void;
onCreateCollection: (name: string) => void;
}
export interface HistoryListProps {
history: HistoryItem[];
currentWorkspace: Workspace;
onSelectRequest: (req: HistoryItem) => void;
onOpenFullHistory: () => void;
}
export interface EnvironmentListProps {
envVariables: EnvironmentVariable[];
onUpdateEnv: (vars: EnvironmentVariable[]) => void;
}