import React, { useEffect, useState } from 'react' import { Box } from '$components'; import { Select } from 'antd'; import './style.less'; const { Option } = Select; function DataTop5(props) { const { structures, accessToken, videoList } = props; const [showVideoList, setShowVideoList] = useState([]); useEffect(() => { if (videoList.length && structures.length) setShowVideoList(videoList.filter(v => v.structId === structures[0].id)); }, [videoList]) const renderSubtitle = () => ( ); return
{ showVideoList?.map((v, i) => { const src = `https://open.ys7.com/ezopen/h5/iframe?url=${v.url}&autoplay=1&accessToken=${accessToken}` return
{v.name}
}) }
} export default DataTop5;