import * as React from "react";
import { generateWeekRange } from "./utils";
import MenuDay from "./MenuDay";

export default function Menu() {
  const days = generateWeekRange(new Date(), 7);

  return (
    <>
      <h2>Меню</h2>
      <div>
        {days.map((day) => (
          <MenuDay key={day.getDate()} date={day} />
        ))}
      </div>
    </>
  );
}
