import YouTube from 'react-youtube' import { PlayerWrapper } from '../../styled' import { useVideoPlayer, Props } from '../../hooks' export const YoutubePlayer = (props: Props) => { const { profile } = props const { onMouseMove, onPlayerClick, onTouchEnd, onTouchStart, playing, sizeOptions: { height, width, }, wrapperRef, } = useVideoPlayer(props) const youtube_link = profile?.youtube_link || '' const key = youtube_link.slice(32, youtube_link.length) return ( ) }