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 './Callout.scss';
import LinkButton from '../../LinkButton';
import { ResponsiveBackgroundImage } from '../index';
var Callout = function (_a) {
    var backgroundImage = _a.backgroundImage, calmMainText = _a.calmMainText, mainText = _a.mainText, secondaryText = _a.secondaryText, buttonText = _a.buttonText, href = _a.href, ctaOverride = _a.ctaOverride;
    return React.createElement(ResponsiveBackgroundImage, __assign({ className: "callout" }, backgroundImage),
        mainText &&
            React.createElement("div", { className: "callout__main-text" }, mainText),
        calmMainText &&
            React.createElement("div", { className: "callout__main-text callout__main-text--calm" }, calmMainText),
        ctaOverride &&
            React.createElement("div", { className: "callout__button-wrapper" }, ctaOverride),
        !ctaOverride && buttonText && href &&
            React.createElement("div", { className: "callout__button-wrapper" },
                React.createElement(LinkButton, { href: href, isDark: true }, buttonText)),
        secondaryText &&
            React.createElement("div", { className: "callout__secondary-text" }, secondaryText));
};
Callout.propTypes = {
    backgroundImage: PropTypes.object,
    calmMainText: PropTypes.string,
    mainText: PropTypes.string,
    secondaryText: PropTypes.node,
    buttonText: PropTypes.string,
    href: PropTypes.string,
    yelling: PropTypes.bool,
    ctaOverride: PropTypes.node,
};
Callout.defaultProps = {
    backgroundImage: {},
};
export default Callout;
//# sourceMappingURL=Callout.js.map