import { IDrawerMenuItem } from "../../data";
import styles from "./styles.module.scss";

interface IDrawerMenuListProps {
  items: IDrawerMenuItem[];
}

function DrawerMenuList({ items }: IDrawerMenuListProps) {
  return (
    <nav className={styles.container}>
      <ul className={styles.list}>
        {items.map((item, index) => (
          <li key={index} className={styles.item}>
            <a className={styles.link} href={item.link}>
              {item.text}
            </a>
          </li>
        ))}
      </ul>
    </nav>
  );
}

export default DrawerMenuList;
