import React, { useEffect } from "react"; import Navbar from "../../components/Navbar"; import Footer from "../Home/Footer"; 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 "./index.scss"; import listIcon from "../../assets/icons/list.png"; import { connect } from "react-redux"; import scroll from "../../util/scroll.js"; import { book, publicApi } from "../../redux/actions"; function VodTube({ videoList, getBookList, list, selectedVideo, comments, info, getInfo, }: any) { useEffect(() => { getBookList(); // getInfo({ // bookId: 1, // // window.location.pathname.slice( // // window.location.pathname.lastIndexOf("/") + 1, // // window.location.pathname.length // // ), // }); scroll.goToTop(); }, []); return (
{/* */}

نظرات

{comments?.map((comment: any, i: any) => ( ))}

{videoList.name}

در این قسمت توضیحی کوتاه قرار می گیرد

{info?.vods.map((video: any, i: any) => ( ))}

فایل پیوست تمارین این فصل

در این قسمت توضیحی کوتاه قرار می گیرد

{videoList.attachments?.map((file: any, i: any) => ( ))}

پیشنهاد دانوین برای شما

تا 50% تخفیف
{list?.slice(0, 3).map((item: any, i: any) => ( ))}

نظرات

{comments?.map((comment: any, i: any) => ( ))}
); } export default connect( (state: any) => ({ videoList: state.book.mockVideoList, selectedVideo: state.book.selectedVideo, list: state.book.list, comments: state.book.comments, info: state.book.info, }), { getInfo: publicApi.bookInfo, getBookList : book.list } )(VodTube);