mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 23:16:03 +01:00
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
interface AlertDialogProps {
|
|
header: string;
|
|
content: string;
|
|
centered?: boolean;
|
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
overflow?: 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();
|