(resolve => {
+ let value = '';
+ const description = (
+
+ {toReactNode(message)}
+ (value = e)} />
+
+ );
+ openConfirmModal({
+ title: toReactNode(title),
+ description: description,
+ confirmButtonOptions: {
+ children: confirmText ?? 'Confirm',
+ type: 'primary',
+ },
+ cancelButtonOptions: {
+ children: cancelText ?? 'Cancel',
+ },
+
+ onConfirm: () => {
+ resolve(value);
+ },
+ onCancel: () => {
+ resolve(null);
+ },
+ });
+ abort?.addEventListener('abort', () => {
+ resolve(null);
+ closeConfirmModal();
+ });
});
},
toast: (message: string, options: ToastOptions) => {