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 OrderSuccess() { 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 */} Order Placed Successfully! Thank you for your order Your order will be delivered as per your selected slot {/* Order Details (if available) */} {orderId && ( Order #{orderId} {totalAmount && ( Total: ₹{totalAmount} )} )} {/* Action Buttons */} router.replace("/(drawer)/(tabs)/home")} fillColor="brand500" textColor="white1" fullWidth /> { router.dismissAll(); router.replace("/(drawer)/(tabs)/me/my-orders"); }} fillColor="gray1" textColor="black1" fullWidth /> ); }