var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React from 'react';
import PropTypes from 'prop-types';
import './KeyHighlights.scss';
import LinkButton from '../../LinkButton';
import { ResponsiveBackgroundImage } from '../index';
import Highlight from './Highlight';
var KeyHighlights = function (_a) {
    var backgroundImage = _a.backgroundImage, headerText = _a.headerText, highlights = _a.highlights, buttonText = _a.buttonText, href = _a.href;
    return React.createElement(ResponsiveBackgroundImage, __assign({ className: "key-highlights" }, backgroundImage),
        React.createElement("div", { className: "key-highlights__content" },
            React.createElement("h2", { className: "key-highlights__header" }, headerText),
            React.createElement("div", { className: "key-highlights__highlights-wrapper" }, highlights.map(function (highlight, index) {
                return React.createElement(Highlight, __assign({ key: index }, highlight));
            })),
            buttonText && href &&
                React.createElement("div", { className: "key-highlights__button-wrapper" },
                    React.createElement(LinkButton, { href: href, isDark: true }, buttonText))));
};
KeyHighlights.propTypes = {
    backgroundImage: PropTypes.object,
    headerText: PropTypes.string,
    highlights: PropTypes.array,
    buttonText: PropTypes.string,
    href: PropTypes.string,
};
KeyHighlights.defaultProps = {
    backgroundImage: {},
    headerText: 'Key Highlights',
    buttonText: 'See Full Details',
};
export default KeyHighlights;
//# sourceMappingURL=KeyHighlights.js.map