import React from "react"; import { Box, Typography, Card, CardContent, CardMedia, IconButton, Chip, } from "@mui/material"; import AddIcon from "@mui/icons-material/Add"; const MealCard = ({ meal, onClick, onAdd }) => { const { name, price, unit, photo, image, description, additions } = meal; return ( {/* صورة الوجبة */} {/* تفاصيل الوجبة */} {name} {/* السعر */} ${price}{" "} {unit || "/pcs"} {/* الوصف (أول عنصر فقط للتصغير) */} {description && description.length > 0 && ( {description[0]} )} {/* الإضافات (أول 2 فقط) */} {/* {additions && additions.length > 0 && ( {additions.slice(0, 2).map((add, i) => ( ))} )} */} {/* زر الإضافة */} {/* { e.stopPropagation(); if (onAdd) onAdd(meal); }} sx={{ backgroundColor: "#FF8551", color: "#fff", mt: 1, width: 28, height: 28, "&:hover": { backgroundColor: "#ff7043" }, }} > */} ); }; export default MealCard;