import React, { useState, useEffect } from "react"; import { connect } from "react-redux"; import { publicApi } from "../../redux/actions"; import poster from "../../assets/images/poster.svg"; import Divider from "../../components/Divider"; import Season from "./components/Season"; function VideoDisplay({ product = { type: "کتاب ها", name: "ریاضی", price: "145.000 تومان", imageUrl: "https://dnvn.ir/api/v1/file/2105", poster: poster, grade: "پایه هفتم ابتدایی", seasons: [ { name: "فصل اول: مباحث جوشش مواد مذاب در مرکز زمین", duration: "2:30:13", units: [ { name: "مقدمه جالب توجه نویسنده کتاب برای شما", duration: "14:30", download: true, play: true, }, { name: "چگونگی ساخت نیروگاههای برقی ", duration: "14:30", download: false, play: true, }, { name: "آیا گوگل از ما دزدی میکند ؟", duration: "14:30", download: true, play: true, }, ], }, ], }, headerOptions, setHeaderOptions, }) { useEffect(() => { setHeaderOptions(headerOptions); }, []); return (