-1
import React, { Component } from 'react';
import PurchaseListView from '../purchaseListView'
import './style.scss';
const purchaseData = [{items:[{gtin:'15024', descricao:'sabonete', quantItems: 5, valorUni: 2}, {gtin:'54865', descricao:'saco de arroz', quantItems: 5, valorUni: 15}]}]
const ItemsPurchase = props => {
// const {purchaseData} = props
return (
purchaseData.items.map((purchase)=>{
console.log('purchase')
console.log(purchase.items)
return <PurchaseListView gtin={purchase.gtin} descricao={purchase.descricao}/>
})
);
}
export default ItemsPurchase;