import React from 'react';
import {Box, Button, Grid, Typography} from "@mui/material";
import Link from "react-router-dom/es/Link";
import {backURL} from "../actions/PathDB";
import imgNotFound from "../img/catalog/imgNotFound.png";
import CloseIcon from "@mui/icons-material/Close";
export const ItemHeaderLine = ({text, align='left'}) => {
return (
{text || ''}
)
}
export const LinkProductItem = ({item: [_id, name, images], children=''}) => {
return (
{children ?
:
}
)
}
const AddToCart = ({good, addToCart}) => {
return (
)
}
export const RemoveFromList = ({good, onRemove}) => {
return (
)
}
export const TableLine = ({columnName, role='header', customSizeCol}) => {
const good = {
'_id': columnName[0][0],
'name': columnName[0][1],
'images': columnName[0][2],
'price': columnName[1]
}
return (
{
role === 'header' ?
:
}
{
role === 'header' ?
:
}
{
role === 'header' ?
:
}
)
}