Files
ox_lib/package/client/resource/interface/alert.ts

17 lines
421 B
TypeScript

interface AlertDialogProps {
header: string;
content: string;
centered?: boolean;
cancel?: boolean;
labels?: {
cancel?: string;
confirm?: string;
};
}
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();