import React from "react"; import styles from "./index.module.scss"; import classNames from "classnames"; import { useSelector } from "react-redux"; import store, { RootState } from "@/store"; import { envUrl } from "@/utils/history"; import closeImg from '@/assets/img/close.png' function VideoBox() { const { videoInfo } = useSelector((state: RootState) => state.A2Main); return (
store.dispatch({ type: "main/lookVideo", payload: { id: 0, title: "", txt: "", }, }) } >
{videoInfo.id ? (

{videoInfo.title}

) : null}
); } const MemoVideoBox = React.memo(VideoBox); export default MemoVideoBox;