import React from 'react'; import { View, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native'; import { ShieldCheck, X } from 'lucide-react-native'; import { useTheme } from '../../../Hooks/useTheme'; import AppText from '../../../components/AppText'; interface Props { visible: boolean; onClose: () => void; onConfirm: () => void; bidAmount: number; isLoading?: boolean; } const ConfirmBidModal = ({ visible, onClose, onConfirm, bidAmount, isLoading }: Props) => { const { colors, shadows } = useTheme(); if (!visible) return null; return ( Confirm Your Bid Are you sure you want to place this bid? This action cannot be undone. BID AMOUNT ₹{bidAmount?.toLocaleString('en-IN') || 0} Cancel {isLoading ? ( ) : ( Submit Bid )} ); }; export default ConfirmBidModal; const styles = StyleSheet.create({ overlay: { ...StyleSheet.absoluteFillObject, backgroundColor: 'rgba(0,0,0,0.7)', justifyContent: 'center', alignItems: 'center', padding: 24, zIndex: 9999, elevation: 9999, }, modalCard: { width: '100%', borderRadius: 24, padding: 24, alignItems: 'center', }, closeBtn: { position: 'absolute', top: 16, right: 16, width: 32, height: 32, borderRadius: 16, alignItems: 'center', justifyContent: 'center', }, iconBox: { width: 64, height: 64, borderRadius: 32, alignItems: 'center', justifyContent: 'center', marginBottom: 16, }, title: { marginBottom: 8, }, subtitle: { marginBottom: 24, paddingHorizontal: 10, }, amountBox: { width: '100%', paddingVertical: 16, borderRadius: 16, borderWidth: 1, alignItems: 'center', justifyContent: 'center', marginBottom: 24, gap: 4, }, btnRow: { flexDirection: 'row', gap: 12, width: '100%', }, btn: { flex: 1, height: 50, borderRadius: 16, alignItems: 'center', justifyContent: 'center', }, cancelBtn: {}, confirmBtn: {}, });