import styles from './styles.module.scss'

type YoutubePlayerProps = {
  id: string
}

export const YoutubePlayer = ({id}: YoutubePlayerProps) => {
  return (
    <div className={styles.container}>
      <iframe src={`https://www.youtube-nocookie.com/embed/${id}`}
              title="YouTube video player" frameBorder="0"
              allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
              referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>
    </div>
  )
}