mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-18 10:08:34 +00:00
10 lines
286 B
TypeScript
10 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);
|