import NavigationMenuItem from "./NavigationMenuItem"

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

import type { NavigationMenuProps } from "@/types/components/header/navigationMenu"

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