"use client"
import NavigationMenuItem from "../NavigationMenuItem"

import styles from "../navigationMenu.module.css"

export default function NavigationMenuList({
  isMobile,
  items,
}: {
  isMobile: boolean
  items: any
}) {
  return (
    <ul
      className={`${styles.navigationMenu} ${isMobile ? styles.mobile : styles.desktop}`}
    >
      {items.map((item: any) => (
        <li key={item.title} className={styles.item}>
          <NavigationMenuItem isMobile={isMobile} item={item} />
        </li>
      ))}
    </ul>
  )
}
