import { Box, width } from '@mui/system'; import { backendURL } from '../../../helpers'; import defaultGoodImage from '../../../images/default-good-image.png'; import { IoCloseOutline } from 'react-icons/io5'; import { AiOutlinePlus, AiOutlineMinus } from 'react-icons/ai'; import { actionCartChange } from '../../../reducers'; import { useEffect, useState } from 'react'; import { useDispatch } from 'react-redux'; import { ListItem, Grid, Typography, Stack, Container, IconButton, TextField, ButtonGroup, Button, Input, TableCell, TableRow, Card, CardMedia, CardContent, } from '@mui/material'; const DrawerCartItem = ({ order, onDeleteClick }) => { const { good: { _id, images = [], name = '', price = 0 }, } = order || {}; return ( {name} {price} onDeleteClick({ _id, images, name, price })}> ); }; export { DrawerCartItem };