import React from 'react'; import { View, Text } from 'react-native'; import { useAppTheme } from '@theme'; import { PrimaryButton } from '@components'; import { useAppDispatch, useAppSelector } from '@store'; import { advanceJobStatus } from '@store/commonReducers/job'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { AppStackParamList } from '@navigation/navigationTypes'; import { RouteNames, JobStatus } from '@utils/constants'; import { getStyles } from './orderAcceptedScreen.styles'; export const OrderAcceptedScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const dispatch = useAppDispatch(); const navigation = useNavigation>(); const activeJob = useAppSelector((state) => state.job.activeJob); const handleNavigate = () => { dispatch(advanceJobStatus(JobStatus.ArrivedAtStore)); navigation.navigate(RouteNames.ArrivedAtStore); }; if (!activeJob) return null; return ( {/* Top Banner Alert */} Order Accepted • Go to pickup location {/* Blank Map Placeholder Background */} [ Map Placeholder ] {/* Merchant Bottom Card */} Pickup Merchant {activeJob.pickupName} {activeJob.pickupAddress} ); }; export default OrderAcceptedScreen;