import React from "react"; import { Link } from "react-router-dom"; import { ScrollingCarousel } from "@trendyol-js/react-carousel"; import { connect } from "react-redux"; import Progress from "../../../../../components/Progress"; //assets import arrowGreenIcon from "../../../../../assets/icons/dropdown-blue.svg"; import arrowWhiteIcon from "../../../../../assets/icons/arrow-left-white.svg"; import whitePlayIcon from "../../../../../components/VodProduct/white-play-button-icon.svg"; function Videos({ videos, grades, isDark, isMobile }) { const Video = ({ video }) => { return (
  • {"دوره ویدئویی" + " " + video?.product[2]?.name}

    {/*

    {`پایه ${ grades[video.gradeId] }`}

    */}
  • ); }; return (
    دوره‌های ویدئویی شما {isDark ? ( ) : ( )}
    {isMobile ? ( ) : ( {videos?.map((video, index) => ( )}
    ); } const mapStateToProps = (state) => ({ isDark: state.publicApi.isDark, isMobile: state.publicApi.isMobile, }); export default connect(mapStateToProps)(Videos);