import React from "react";

const ResponsiveIFrame = (props) => {
  const { classes, src, title, fullscreen } = props;
  const container = fullscreen
    ? classes.iframeResponsive
    : classes.embeddedWrapper;

  return (
    <div className={container}>
      <iframe
        className={classes.iframeResponsive}
        title={title}
        src={src}
        frameBorder="0"
      ></iframe>
    </div>
  );
};

export default ResponsiveIFrame;
