import NavigationMenuItem from "../NavigationMenuItem"

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

import { NavigationMenuListProps } from "@/types/components/header/navigationMenuList"

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