import React from 'react' import { View } from 'react-native' import MaterialIcons from '@expo/vector-icons/MaterialIcons' import { tw, MyText } from 'common-ui' import { useRegionNeo } from '@/src/hooks/useRegionNeo' import { addressIconName } from '@/src/lib/neo-address' /** * Read-only delivery address card for the checkout page. The address is chosen * on the cart page (CheckoutAddressSelector); checkout only shows it. */ const CheckoutAddressDisplay: React.FC = () => { // The hook guarantees the selection belongs to the current region, so this // is the one address the order will use. const address = useRegionNeo().selectedAddress return ( Delivery Address {address ? ( {address.name} {address.addressLine1} {address.addressLine2 ? `, ${address.addressLine2}` : ''} {address.city}, {address.state} Phone: {address.phone} ) : ( No address selected )} ) } export default CheckoutAddressDisplay