mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(client/interface): close functions for input and alert dialogs
This commit is contained in:
@@ -8,3 +8,5 @@ interface AlertDialogProps {
|
||||
type alertDialog = (data: AlertDialogProps) => Promise<'cancel' | 'confirm'>;
|
||||
|
||||
export const alertDialog: alertDialog = async (data) => await exports.ox_lib.alertDialog(data);
|
||||
|
||||
export const closeAlertDialog = () => exports.ox_lib.closeAlertDialog();
|
||||
|
||||
@@ -20,3 +20,5 @@ type inputDialog = (
|
||||
rows: string[] | InputDialogRowProps[]
|
||||
) => Promise<Array<string | number | boolean> | undefined>;
|
||||
export const inputDialog: inputDialog = async (heading, rows) => await exports.ox_lib.inputDialog(heading, rows);
|
||||
|
||||
export const closeInputDialog = () => exports.ox_lib.inputDialog();
|
||||
|
||||
Reference in New Issue
Block a user