mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-18 18:18:34 +00:00
feat(web/alert): allow defining alert dialog button labels
This commit is contained in:
1 parent
4aad28a2e5
commit
d92c1d7e23
4 files changed
+15
-2
No files matched your search
@@ -3,6 +3,10 @@ interface AlertDialogProps {
|
||||
content: string;
|
||||
centered?: boolean;
|
||||
cancel?: boolean;
|
||||
labels?: {
|
||||
cancel?: string;
|
||||
confirm?: string;
|
||||
};
|
||||
}
|
||||
|
||||
type alertDialog = (data: AlertDialogProps) => Promise<'cancel' | 'confirm'>;
|
||||
|
||||
Reference in new issue
Block a user