import React from "react";
import { Modal, StyleSheet, Text, TouchableOpacity, View } from "react-native";
import colors from "../config/colors";
import { dimensions } from "../config/dimensions";
function Btn({ label, onPress, bgColor, txtColor }) {
return (
{label}
);
}
export default function ConfirmationModal({
show,
onConfirm,
onDecline,
confirmationLabel,
declineLabel,
title = "",
description = "",
}) {
return (
{title}
{description}
{onConfirm && confirmationLabel && }
{onDecline && declineLabel && }
);
}
const styles = StyleSheet.create({
container: {
width: "80%",
justifyContent: "center",
alignSelf: "center",
backgroundColor: colors.lightestGray,
borderColor: colors.primary,
borderWidth: 2,
borderRadius: 12,
paddingVertical: 16,
paddingHorizontal: 12
},
text: {
fontSize: dimensions.text.default,
textAlign: "left",
fontWeight: "bold",
},
});