"use client"; import { OrderStateColumns } from "@/lib/types"; import { cancelOrderApi, completeOrderApi } from "@/app/order/action"; import { Button } from "./ui/button"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./ui/card"; import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle, DrawerTrigger } from "./ui/drawer"; import { Pencil2Icon, TrashIcon } from "@radix-ui/react-icons"; export default function OrderCard({ order, }: { order: OrderStateColumns; }) { return
주문 취소 정말로 주문을 취소하시겠습니까?
{order.id.split("/")[1]}번 주문 {order.completed ? "완료" : "대기중..."}

{order.orders.map((item) => (
{item.HOT ? "HOT" : "COLD"} {item.name} {item.quantity}
))}
}