"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/* @flow */
const react_1 = __importStar(require("react"));
const prop_types_1 = __importDefault(require("prop-types"));
const withStyles_1 = __importDefault(require("components/hoc/withStyles"));
const ErrorBoundary_1 = __importDefault(require("components/hoc/ErrorBoundary"));
const Button_1 = __importDefault(require("components/bosons/Button"));
const styles_1 = __importDefault(require("./styles"));
class Jumbotron extends react_1.Component {
    render() {
        const { classes, title, description, hrefText, href, footerText, } = this.props;
        return (react_1.default.createElement(ErrorBoundary_1.default, null,
            react_1.default.createElement("div", { className: classes.component },
                react_1.default.createElement("div", { className: classes.title }, title),
                description && (react_1.default.createElement("div", { className: classes.description }, description)),
                hrefText && (react_1.default.createElement(Button_1.default, { href: href, maxWidth: 400, width: "80%", applyBorderRadius: true, title: hrefText })),
                footerText && react_1.default.createElement("div", { className: classes.footerText }, footerText))));
    }
}
Jumbotron.propTypes = {
    href: prop_types_1.default.string,
    hrefText: prop_types_1.default.string,
    title: prop_types_1.default.string,
    description: prop_types_1.default.string,
    footerText: prop_types_1.default.string,
    classes: prop_types_1.default.object,
};
exports.default = withStyles_1.default(styles_1.default)(Jumbotron);
//# sourceMappingURL=index.js.map