import React from "react"; import { View, Text, TouchableOpacity, StyleSheet, Modal } from "react-native"; import type { OperoChatStyles } from "../types"; export interface OperoConfirmationDialogProps { isVisible: boolean; title: string; message: string; confirmText?: string; cancelText?: string; onConfirm: () => void; onCancel: () => void; customStyles?: OperoChatStyles; } export const OperoConfirmationDialog: React.FC< OperoConfirmationDialogProps > = ({ isVisible, title, message, confirmText = "Confirm", cancelText = "Cancel", onConfirm, onCancel, customStyles, }) => { const styles = createStyles(customStyles); return ( {title} {message} {cancelText} {confirmText} ); }; const createStyles = (customStyles: any) => StyleSheet.create({ overlay: { flex: 1, backgroundColor: "rgba(0, 0, 0, 0.5)", justifyContent: "center", alignItems: "center", paddingHorizontal: 20, }, dialog: { backgroundColor: "#ffffff", borderRadius: 12, padding: 24, width: "100%", maxWidth: 400, shadowColor: "#000", shadowOffset: { width: 0, height: 4, }, shadowOpacity: 0.3, shadowRadius: 8, elevation: 8, }, title: { fontSize: 18, fontWeight: "600", color: "#1f2937", marginBottom: 8, textAlign: "center", }, message: { fontSize: 16, color: "#6b7280", marginBottom: 24, textAlign: "center", lineHeight: 22, }, buttonContainer: { flexDirection: "row", gap: 12, }, button: { flex: 1, paddingVertical: 12, paddingHorizontal: 16, borderRadius: 8, alignItems: "center", }, cancelButton: { backgroundColor: "#f3f4f6", borderWidth: 1, borderColor: "#e5e7eb", }, confirmButton: { backgroundColor: customStyles?.primaryColor || "#3b82f6", }, cancelButtonText: { fontSize: 16, fontWeight: "600", color: "#6b7280", }, confirmButtonText: { fontSize: 16, fontWeight: "600", color: "#ffffff", }, });