mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
18 lines
579 B
TypeScript
18 lines
579 B
TypeScript
import { Alert } from 'react-native';
|
|
import loc from '../loc';
|
|
|
|
export const presentWalletExportReminder = (): Promise<void> => {
|
|
return new Promise<void>((resolve, reject) => {
|
|
Alert.alert(
|
|
loc.wallets.details_title,
|
|
loc.pleasebackup.ask,
|
|
[
|
|
{ text: loc.pleasebackup.ask_yes, onPress: () => resolve(), style: 'default' },
|
|
{ text: loc.pleasebackup.ask_no, onPress: () => reject(new Error('User has denied saving the wallet backup.')) },
|
|
{ text: loc._.cancel, style: 'cancel' },
|
|
],
|
|
{ cancelable: true },
|
|
);
|
|
});
|
|
};
|