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); }
// this is a clone and adapt of the review-banner component (packages/@coorpacademy-components/src/molecule/dashboard/review-banner/index.js)
import React from 'react';
import PropTypes from 'prop-types';
import ButtonLink from '../../../atom/button-link';
import style from './style.css';
const BOOK_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-book.png';
const TARGET_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-dart.png';
const LearningProfileBanner = /*#__PURE__*/React.memo(function LearningProfileBanner(props) {
  const {
    title,
    subtitle,
    cta
  } = props;
  const buttonProps = {
    ...cta,
    type: 'primary'
  };
  return /*#__PURE__*/React.createElement("div", {
    className: style.root,
    "data-name": "start-learning-profile-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: BOOK_IMG_URL,
    alt: "Notebook image"
  })), /*#__PURE__*/React.createElement("div", {
    className: style.middle
  }, /*#__PURE__*/React.createElement("span", {
    className: style.title,
    "data-name": "learning-profile-banner-title",
    "aria-label": "{title}"
  }, title), /*#__PURE__*/React.createElement("span", {
    className: style.subtitle,
    "data-name": "learning-profile-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": "Right image container"
  }, /*#__PURE__*/React.createElement("img", {
    className: style.image,
    src: TARGET_IMG_URL,
    alt: "Target image"
  })))));
});
LearningProfileBanner.propTypes = process.env.NODE_ENV !== "production" ? {
  title: PropTypes.string,
  subtitle: PropTypes.string,
  cta: PropTypes.shape({
    onClick: PropTypes.func,
    label: PropTypes.string
  })
} : {};
export default LearningProfileBanner;
//# sourceMappingURL=index.js.map