mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
11 lines
286 B
TypeScript
11 lines
286 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);
|