import { useRef } from 'react' import Splash from 'components/Splash' const Video = ({ playlist, current, setCurrent }) => { if (!playlist) return null const videoEl = useRef() const sources = playlist[current]?.sources const handleEnd = () => { setCurrent(current === playlist.length - 1 ? null : current + 1) } return ( sources ? ( ) : ( ) ) } export default Video