"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 React = require("react");
var styled_components_1 = require("styled-components");
exports.LegendElement = styled_components_1.default.legend(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tfont-size: 11px;\n\tcolor: #252629;\n\ttext-transform: uppercase;\n\tdisplay: inline-block;\n\tmargin-bottom: 6px;\n"], ["\n\tfont-size: 11px;\n\tcolor: #252629;\n\ttext-transform: uppercase;\n\tdisplay: inline-block;\n\tmargin-bottom: 6px;\n"])));
exports.TitleField = function (_a) {
    var id = _a.id, required = _a.required, title = _a.title;
    if (!title) {
        return null;
    }
    return (React.createElement(exports.LegendElement, { id: id },
        title,
        required && '*'));
};
var templateObject_1;
