import React from "react"; import { View } from "react-native"; import { useRouter, useLocalSearchParams } from "expo-router"; import { AppContainer, MyText, MyButton, tw } from "common-ui"; import MaterialIcons from "@expo/vector-icons/MaterialIcons"; export default function FlashDeliveryOrderSuccess() { const router = useRouter(); const params = useLocalSearchParams(); // You can access order details from params if passed const orderId = params.orderId as string; const totalAmount = params.totalAmount as string; return ( {/* Success Icon */} {/* Success Message */} Flash Order Placed! Lightning-fast delivery on the way! Your order will be delivered in just 30 minutes {/* Order Details (if available) */} {orderId && ( Flash Order #{orderId} {totalAmount && ( Total: ₹{totalAmount} )} )} {/* Action Buttons */} router.replace("/(drawer)/(tabs)/flash-delivery")} fillColor="brand500" textColor="white1" fullWidth /> { router.dismissAll(); router.replace("/(drawer)/(tabs)/me/my-orders"); }} fillColor="gray1" textColor="black1" fullWidth /> ); }