import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Col } from 'react-bootstrap'; import { Cart } from 'react-bootstrap-icons'; import imgPlaceholder from '../../../assets/placeholder.jpg'; import './LineTableRow.css'; const LinesTableRow = ({ line, onAddCart, toInfoPage }) => { const handleAnchorClick = (event, action) => { event.preventDefault(); action(); }; const price =

{parseFloat(line.price).toFixed(0)} руб.

; return ( image of game handleAnchorClick(event, toInfoPage)}> {line.title} {price}

{line.type.name}

handleAnchorClick(event, onAddCart)}> ); // return ( // // // image // // // {line.title} // {price}; // {/*

{parseFloat(line.price).toFixed(0)} ₽

*/} // // //

{line.type.name}

// // //

{(line.description)}

// // // handleAnchorClick(event, onAddCart)}> // // // ); }; LinesTableRow.propTypes = { index: PropTypes.number, line: PropTypes.object, onAddCart: PropTypes.func, toInfoPage: PropTypes.func, }; export default LinesTableRow;