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 './CenterFeature.scss';
import LinkButton from '../../LinkButton';
import { ResponsiveBackgroundImage } from '../index';
var CenterFeature = function (_a) {
    var backgroundImage = _a.backgroundImage, featureImage = _a.featureImage, featureHeaderText = _a.featureHeaderText, featureBodyText = _a.featureBodyText, buttonText = _a.buttonText, href = _a.href, className = _a.className;
    return (React.createElement(ResponsiveBackgroundImage, __assign({ className: [className, 'center-feature'].filter(Boolean).join(' ') }, backgroundImage),
        React.createElement("div", { className: "center-feature__content" },
            React.createElement("h2", { className: "center-feature__header-text" }, featureHeaderText),
            React.createElement("p", { className: "center-feature__body-text" }, featureBodyText),
            featureImage && (React.createElement("img", { src: featureImage.source, alt: featureImage.alt, className: "center-feature__image" })),
            buttonText && href && (React.createElement("div", { className: "center-feature__button-wrapper" },
                React.createElement(LinkButton, { href: href, isDark: true }, buttonText))))));
};
CenterFeature.propTypes = {
    backgroundImage: PropTypes.object,
    headerText: PropTypes.string,
    subText: PropTypes.string,
    mainImage: PropTypes.string,
    buttonText: PropTypes.string,
    href: PropTypes.string,
    featureImage: PropTypes.object,
    featureHeaderText: PropTypes.string,
    featureBodyText: PropTypes.string,
    className: PropTypes.string,
};
CenterFeature.defaultProps = {
    backgroundImage: {},
    buttonText: 'Order Now',
    className: '',
};
export default CenterFeature;
//# sourceMappingURL=CenterFeature.js.map