import { MenuItem } from "@/lib/readCsv"; import { Card, CardContent, CardHeader, CardTitle } from "./ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs"; import { Dispatch } from "react"; import { OrderAction } from "@/hooks/useOrder"; import { cn } from "@/lib/utils"; import { Button } from "./ui/button"; export default function Menu({ menus, categories, dispatch }: { menus: MenuItem[]; categories: string[]; dispatch: Dispatch }) { const menu = menus; return {[...categories].map(category => ( {category} ))} { [...categories].map(category => ( {category}
  • Name HOT COLD

  • {menu.filter(item => item.category === category).map((item,index) => (
  • {item.name} {item.HOT} {item.COLD}
  • ))}
)) }
}