import { View, Text, ScrollView, Image } from 'react-native'; import React from 'react'; import { useStore } from '../store/store'; import OrderReceiptCard from '../components/OrderReceiptCard'; const OrderReceipt = ({navigation}: any) => { const ReceiptList = useStore((state: any) => state.ReceiptList); const navigationHandler = ({index, id, type}: any) => { navigation.push('detail', { index, id, type, }); }; return ( Receipt {ReceiptList.length == 0 ? ( ):( {ReceiptList.map((data: any, index: any) => ( ))} )} ) } export default OrderReceipt