function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from 'react';
import PropTypes from 'prop-types';
import ButtonLink from '../../../atom/button-link';
import style from './style.css';
const ReviewBanner = /*#__PURE__*/React.memo(function ReviewBanner(props) {
  const {
    title,
    subtitle,
    cta
  } = props;
  const buttonProps = {
    ...cta,
    type: 'primary'
  };
  return /*#__PURE__*/React.createElement("div", {
    className: style.root,
    "data-name": "start-review-banner"
  }, /*#__PURE__*/React.createElement("div", {
    className: style.container
  }, /*#__PURE__*/React.createElement("div", {
    className: style.banner
  }, /*#__PURE__*/React.createElement("div", {
    className: style.left,
    role: "img",
    "aria-label": "Left image container"
  }, /*#__PURE__*/React.createElement("img", {
    className: style.image,
    src: "https://static.coorpacademy.com/site/book.png",
    alt: "Book image"
  })), /*#__PURE__*/React.createElement("div", {
    className: style.middle
  }, /*#__PURE__*/React.createElement("span", {
    className: style.title,
    "data-name": "review-banner-title",
    "aria-label": "{title}"
  }, title), /*#__PURE__*/React.createElement("span", {
    className: style.subtitle,
    "data-name": "review-banner-subtitle",
    "aria-label": "{subtitle}"
  }, subtitle), /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buttonProps, {
    className: style.cta
  }))), /*#__PURE__*/React.createElement("div", {
    className: style.right,
    role: "img",
    "aria-label": "Rigth image container"
  }, /*#__PURE__*/React.createElement("img", {
    className: style.image,
    src: "https://static.coorpacademy.com/site/dumbell.png",
    alt: "Dumbbell image"
  })))));
});
ReviewBanner.propTypes = process.env.NODE_ENV !== "production" ? {
  title: PropTypes.string,
  subtitle: PropTypes.string,
  cta: PropTypes.shape({
    onClick: PropTypes.func,
    label: PropTypes.string
  })
} : {};
export default ReviewBanner;
//# sourceMappingURL=index.js.map