import React from 'react';
import ReactPlayer from 'react-player';

export const YoutubeVideo = ({ url }: { url?: string }) => {
  return (
    url && (
      <div className="tw-w-full tw-aspect-video">
        <ReactPlayer url={url} width="100%" height="100%" controls />
      </div>
    )
  );
};
