import React, { useState, useEffect, useRef } from "react"; import Navbar from "../../../components/Navbar"; 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 Test from "../Test"; 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({ autoPlay, page, selectedVideo, info, // bookSection, // loading, getInfo, // categories, // setVideoActive, // allBooks, theme, }) { const [top, setTop] = useState(window.innerHeight); const videoListTag = useRef(null); useEffect(() => { window.addEventListener("scroll", (e) => { setTop(scroll.homeScrollHandler(page)); }); // localStorage.setItem("scroll-list", "on"); getInfo({ bookId: 8, }); }, []); // 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}
*/}در این قسمت توضیحی کوتاه قرار می گیرد
*/}در این قسمت توضیحی کوتاه قرار می گیرد
*/}