1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export type Tree = TreeItem[];
export type TreeItem = {
title: string;
actions?: Action[];
children?: TreeItem[] | string;
expanded?: boolean;
};
export type Action =
| {
type: "open";
title?: string;
icon?: string;
url: string;
}
| {
type: "copy";
title?: string;
icon?: string;
text: string;
};