import React, { useState } from 'react'; import { View, StyleSheet, Text } from 'react-native'; import type { NativeStackScreenProps } from '@react-navigation/native-stack'; import type { ServicesStackParamList } from '../../../navigation/types'; import { ScreenShell, Card, Input, Button } from '../../../components'; import { useToast } from '../../../hooks/useToast'; import { useTheme } from '../../../theme'; type Props = NativeStackScreenProps; export default function StopPaymentScreen({ navigation }: Props) { const theme = useTheme(); const toast = useToast(); const [account, setAccount] = useState('0000XXXX1234'); const [chequeNumber, setChequeNumber] = useState(''); const [reason, setReason] = useState(''); const [isLoading, setIsLoading] = useState(false); const handleSubmit = () => { if (!chequeNumber) { toast('Cheque number required', 'error', 'Please enter a valid cheque number.'); return; } setIsLoading(true); setTimeout(() => { setIsLoading(false); toast('Payment Stopped', 'success', `Cheque #${chequeNumber} has been blocked.`); navigation.goBack(); }, 1500); }; return ( Select Account Cheque Number Reason (Optional)