2022-03-27 18:17:26 +02:00
|
|
|
export interface Option {
|
2022-03-28 16:49:07 +02:00
|
|
|
menu?: string;
|
2022-05-08 13:00:19 +02:00
|
|
|
title?: string;
|
2022-03-27 18:17:26 +02:00
|
|
|
description?: string;
|
2022-04-19 15:08:02 +02:00
|
|
|
arrow?: boolean;
|
2022-05-08 13:18:09 +02:00
|
|
|
metadata?:
|
|
|
|
|
| string[]
|
|
|
|
|
| { [key: string]: any }
|
|
|
|
|
| { label: string; value: any }[];
|
2022-04-01 21:22:14 +02:00
|
|
|
event?: string;
|
|
|
|
|
serverEvent?: string;
|
|
|
|
|
args?: any;
|
2022-03-27 18:17:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Options {
|
|
|
|
|
[key: string]: Option;
|
|
|
|
|
}
|
2022-03-28 16:49:07 +02:00
|
|
|
|
|
|
|
|
export interface ContextMenuProps {
|
|
|
|
|
title: string;
|
|
|
|
|
menu?: string;
|
2022-05-08 13:00:19 +02:00
|
|
|
options: Options | Option[];
|
2022-03-28 16:49:07 +02:00
|
|
|
}
|