{selectedVideo?.name}
{/*{selectedVideo.text}
*/}نظرات
{localStorage.getItem("category")?.split(",")[1] || "لیست فیلمها"}
{/*در این قسمت توضیحی کوتاه قرار می گیرد
*/}فایل پیوست تمارین این فصل
{/*در این قسمت توضیحی کوتاه قرار می گیرد
*/}import React, { useState, useEffect, useRef } from "react"; import LessonPlayList from "./LessonPlayList"; import Attachments from "./Attachments"; import Book from "./Book"; import Comment from "./Comment"; import AddComment from "./AddComment"; import Video from "../../../components/JolPlayer"; import listIcon from "../../assets/icons/list.png"; import { connect } from "react-redux"; import _ from "lodash"; import scroll from "../../../utils/scroll.js"; import location from "../../../utils/location.js"; import { book, publicApi } from "../../redux/actions"; import Loader from "../../components/Loader"; function VodTube({ selectedVideo, info, bookSection, loading, getInfo, categories, setVideoActive, allBooks, theme, }) { const videoListTag = useRef(null); useEffect(() => { localStorage.setItem("scroll-list", "on"); scroll.goToTop(); getInfo({ bookId: localStorage.getItem("bookId") ? localStorage.getItem("bookId") : localStorage.getItem("category")?.split(",")[0], }); }, []); useEffect(() => { if (allBooks && localStorage.getItem("category")) { const cat = localStorage.getItem("category")?.split(","); bookSection({ bookId: cat[0], categoryId: cat[1] }); } }, [allBooks]); const light = theme === "light"; return ( <>
{selectedVideo.text}
*/}در این قسمت توضیحی کوتاه قرار می گیرد
*/}در این قسمت توضیحی کوتاه قرار می گیرد
*/}