15 lines
479 B
TypeScript
15 lines
479 B
TypeScript
export interface ButtonOptions {
|
|
visible?: boolean;
|
|
text?: string;
|
|
value?: any;
|
|
className?: string | Array<string>;
|
|
closeModal?: boolean;
|
|
}
|
|
export interface ButtonList {
|
|
[buttonNamespace: string]: ButtonOptions | boolean;
|
|
}
|
|
export declare const CONFIRM_KEY = "confirm";
|
|
export declare const CANCEL_KEY = "cancel";
|
|
export declare const defaultButtonList: ButtonList;
|
|
export declare const getButtonListOpts: (opts: string | boolean | object) => ButtonList;
|