import { Alert } from 'react-native';

export const confirmLogout = ({ logout, email }) => {
  Alert.alert(
    'Are you sure?',
    `Do you want to log out user ${email}?`,
    [
      {
        text: 'Logout',
        onPress: logout,
        style: 'destructive',
      },
      {
        text: 'Cancel',
        onPress: () => {},
        style: 'cancel',
      },
    ],
  );
}
