import { actionPopupOpen } from '../../../reducers'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import defaultGoodImage from '../../../images/default-good-image.png'; import { FaEdit } from 'react-icons/fa'; import { Box, Button, TableCell, TableRow } from '@mui/material'; import { backendURL } from '../../../helpers'; const AdminGoodItem = ({ good }) => ( {good._id} {good.name ? good.name : '-'} { } {good.price ? good.price : '-'} {good.amount ? good.amount : '-'} {good.categories ? (good.categories || []).map((category) =>
{category?.name}
) : '-'}
); export { AdminGoodItem };