mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 23:16:03 +01:00
13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
interface AlertDialogProps {
|
|
header: string;
|
|
content: string;
|
|
centered?: boolean;
|
|
cancel?: boolean;
|
|
}
|
|
|
|
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();
|