refactor(web/dialog): Separate fields into individual components

This commit is contained in:
Luke
2022-05-03 15:08:28 +02:00
parent 64a1ad9343
commit 48dae99cc0
8 changed files with 153 additions and 75 deletions

View File

@@ -0,0 +1,19 @@
export interface Option {
menu?: string;
description?: string;
arrow?: boolean;
metadata?: string[] | { [key: string]: any };
event?: string;
serverEvent?: string;
args?: any;
}
export interface Options {
[key: string]: Option;
}
export interface ContextMenuProps {
title: string;
menu?: string;
options: Options;
}