mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
refactor(web/dialog): Separate fields into individual components
This commit is contained in:
19
web/src/interfaces/context.ts
Normal file
19
web/src/interfaces/context.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user