import React from 'react';
import styles from './widget.module.scss';

const index = ({ module }) => (
  <iframe
    title="widget"
    className={`${styles.iframe} ${module?.style ? styles[module.style] : ''}`}
    src={module.url}
  />
);
export default index;
