import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import './index.scss'; const maxDesktopSize = 1250; const fontSize = { desktop: { h1: window.innerWidth > maxDesktopSize ? 22 : window.innerWidth / 65, h2: window.innerWidth > maxDesktopSize ? 14 : window.innerWidth / 85, notAvailable: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 70, available: window.innerWidth > maxDesktopSize ? 18 : window.innerWidth / 70, }, }; export default class Simple extends Component { render() { const { height, data } = this.props; return(
{data.title}

{data.title}

{data.subTitle}

{ data.price ?
{ data.oldPrice ?
{data.oldPrice} تومان
: null }
{data.price} تومان
:
ناموجود
}
); } }