import React from "react"; import { connect } from "react-redux"; import { userProduct } from "~/Redux/actions"; import { Link } from "react-router-dom"; import Navbar from "../Home/Navbar/index"; import Footer from "../Home/Footer/index"; import BreadCrumbs from "./BreadCrumb/index"; import Loader from "~/components/Loader/index"; import "./index.scss"; const maxDesktopSize = 1250; const maxMobileSize = 550; const fontSize = { mobile: { h1: window.innerWidth > maxMobileSize ? 24 : window.innerWidth / 20, a: window.innerWidth > maxMobileSize ? 15 : window.innerWidth / 30, p: window.innerWidth > maxMobileSize ? 14 : window.innerWidth / 30, }, desktop: { h1: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 70, a: window.innerHeight > maxDesktopSize ? 15 : window.innerWidth / 85, p: window.innerWidth > maxDesktopSize ? 14 : window.innerWidth / 90, }, }; class MyBooks extends React.Component { componentDidMount() { window.scrollTo(0, 0); } render() { const { list, checkEmpty, loading } = this.props; return ( <> {window.innerWidth > 1000 ? ( !loading ? ( <>
{!checkEmpty ? ( list.map((item, i) => ) ) : (

برای استفاده از این بخش باید یک کتاب فعال خریداری کرده باشید

فروشگاه
)}