import React, { Component } from "react"; import ChevronLeftIcon from "@material-ui/icons/ChevronLeft"; import Product from './Product/index'; import Subject from './Subject/index'; import MyProduct from './MyProduct/index'; import dropdown from '../../../assets/icons/dropdown.png'; import "./index.scss"; export default class HomeScroll extends Component { render() { const { data, height, title,designType, moreText, number } = this.props; return (

{title}

{moreText} فلش
{data.map((item, i) => ( ))}
); } } const Item = (props) => { return ( <> { props.designType === 'product' ? : null } { props.designType === 'subjects' ? : null } { props.designType === 'myProduct' ? : null } ); };