import React from 'react'
import ListaElem from './ListaElem'
import Fomenu from './Fomenu'
import { Link } from 'react-router-dom'

const BevasarloLista = ({ aruk, vetelk, torlesk, elemMod }) => {
  return (
    <>
      <Fomenu />
      <Link to="/">Főoldal</Link>
      <div>
        {aruk.map((elem, index) => {
          //console.log(elem.megveve)
          return (
            <ListaElem key={index} aru={elem} vetelk={vetelk} torlesk={torlesk} elemMod={elemMod} />
          )
        })
        }
      </div>
    </>
  )
}

export default BevasarloLista