import React, { useState, useEffect } from "react"; import { connect } from "react-redux"; import { book, publicApi } from "../../../../redux/actions"; // import ScrollContainer from "react-indiana-drag-scroll"; import { Carousel } from "@trendyol-js/react-carousel"; import arrow from "../../../../assets/icons/slider-arrow.svg"; import { Link } from "react-router-dom"; import Product from "../../../../components/Product"; import "./index.css"; const SalesContainer = ({ books }) => { const [filter, setFilter] = useState({ search: "", grade: "", productsType: "کتاب", }); return (
{/*
*/}

دوشنبه

{" "} کتاااابی{" "}

بیش از ۵۰ کتاب تخفیف خورده 

{books.length > 0 && (
e.stopPropagation()} /> } leftArrow={ e.stopPropagation()} /> } > {books.map((product, index) => ( ))}
)}
); }; const mapStateToProps = (state) => ({ isDark: state.publicApi.isDark, }); export default connect(mapStateToProps, { getList: book.list })(SalesContainer);