"use strict";
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);
};
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var Button_1 = require("../Button");
var icons_1 = require("../icons");
var HeroStyledComponents_1 = require("./HeroStyledComponents");
var HeroTextComponents_1 = require("./HeroTextComponents");
exports.HomepageHero = function (props) {
    var buyCvlUrl = props.buyCvlUrl, applyURL = props.applyURL;
    var buyBtnProps = { href: buyCvlUrl };
    if (buyCvlUrl.charAt(0) === "/") {
        buyBtnProps = { to: buyCvlUrl };
    }
    var applyBtnProps = { href: applyURL };
    if (applyURL.charAt(0) === "/") {
        applyBtnProps = { to: applyURL };
    }
    return (React.createElement(React.Fragment, null,
        React.createElement(HeroStyledComponents_1.StyledHeroHeading, null,
            React.createElement(HeroTextComponents_1.HeroTitleText, null)),
        React.createElement(HeroStyledComponents_1.StyledHeroCopy, null,
            React.createElement(HeroTextComponents_1.HeroCopyText, __assign({}, props))),
        React.createElement(HeroStyledComponents_1.StyledButtonContainer, null,
            React.createElement(HeroStyledComponents_1.CTAButton, __assign({ size: Button_1.buttonSizes.SMALL }, buyBtnProps), "Join as a member"),
            React.createElement(HeroStyledComponents_1.CTAButton, __assign({ size: Button_1.buttonSizes.SMALL }, applyBtnProps), "Join as a newsroom")),
        React.createElement(HeroStyledComponents_1.StyledExplore, null,
            React.createElement(HeroTextComponents_1.ExploreTCRText, null),
            React.createElement("div", null,
                React.createElement(icons_1.ExpandDownArrow, { width: 18, height: 10 })))));
};
//# sourceMappingURL=HomepageHero.js.map