import React, { Component } from "react"; import ChevronLeftIcon from "@material-ui/icons/ChevronLeft"; import "./index.scss"; const maxDesktopSize = 1250; const fontSize = { desktop: { h2: window.innerWidth > maxDesktopSize ? 15 : window.innerWidth / 85, }, }; export default class HomeStatic extends Component { render() { const { data, height, title } = this.props; return (
{title ? (

{title}

موارد بیشتر
) : null}
{data.map((item, i) => ( ))}
); } } const Item = (props) => { return ( <> {window.innerWidth > 1000 ? (

{props.data.topText}

{props.data.bottomText}

عکس
) : null} { window.innerWidth < 1000 ? (

{props.data.topText}

{props.data.bottomText}

عکس
) : null } ); };