mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
29 lines
539 B
TypeScript
29 lines
539 B
TypeScript
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
export interface Option {
|
|
menu?: string;
|
|
title?: string;
|
|
description?: string;
|
|
arrow?: boolean;
|
|
image?: string;
|
|
icon?: IconProp;
|
|
iconColor?: string;
|
|
metadata?:
|
|
| string[]
|
|
| { [key: string]: any }
|
|
| { label: string; value: any }[];
|
|
event?: string;
|
|
serverEvent?: string;
|
|
args?: any;
|
|
}
|
|
|
|
export interface Options {
|
|
[key: string]: Option;
|
|
}
|
|
|
|
export interface ContextMenuProps {
|
|
title: string;
|
|
menu?: string;
|
|
options: Options | Option[];
|
|
}
|