import React from 'react'; import TweenOne from 'rc-tween-one'; import OverPack from 'rc-scroll-anim/lib/ScrollOverPack'; import VideoPlay from 'react-sublime-video'; import { getChildrenToRender } from './utils'; function Content4(props) { const { ...tagProps } = props; const { dataSource, isMobile } = tagProps; delete tagProps.dataSource; delete tagProps.isMobile; const animation = { y: '+=30', opacity: 0, type: 'from', ease: 'easeOutQuad', }; const videoChildren = dataSource.video.children.video; const videoNameArray = videoChildren.split('.'); const type = videoNameArray[videoNameArray.length - 1]; return (
{dataSource.titleWrapper.children.map(getChildrenToRender)}
{isMobile ? ( ) : ( )}
); } export default Content4;