"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
Object.defineProperty(exports, "__esModule", { value: true });
var styled_components_1 = require("styled-components");
var hoc_1 = require("../hoc");
var recompose_1 = require("recompose");
var setDefaultProps = recompose_1.withProps(function (props) {
    return Object.assign({
        p: [3, 4],
        minHeight: "80vh"
    }, props);
});
var setBgImage = function (bgImage) { return (bgImage ? "url(" + bgImage + ")" : 'none'); };
var Base = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  min-height: ", ";\n  background-size: cover;\n  background-position: center;\n  background-image: ", ";\n"], ["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  min-height: ", ";\n  background-size: cover;\n  background-position: center;\n  background-image: ", ";\n"])), function (props) { return props.minHeight; }, function (props) { return setBgImage(props.backgroundImage); });
exports.default = recompose_1.compose(styled_components_1.withTheme, setDefaultProps, hoc_1.default)(Base);
var templateObject_1;
