import React from "react";

const ResponsiveIFrame = (props) => {
  const { classes, src, title } = props;

  return (
    <div className={classes.embeddedWrapper}>
      <iframe
        style={{
          position: "absolute",
          top: 0,
          left: 0,
          bottom: 0,
          right: 0,
          width: "100%",
          height: "100%",
        }}
        title={title}
        src={src}
        frameBorder="0"
      ></iframe>
    </div>
  );
};

export default ResponsiveIFrame;
