import React from 'react'
import { MenuNavBarItem } from '../interfaces'
import NavBarItem from './NavBarItem'

type Props = {
  menu: MenuNavBarItem[],
  cartItemsCount?: number
}

export default function NavBarMenuList({ menu, cartItemsCount }: Props) {
  return (
    <>
      {menu.map((item, index) => (
          <div key={index}>
            <NavBarItem  item={item} cartItemsCount={cartItemsCount} />
          </div>
      ))}
    </>
  )
}
