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;
};