"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 react_helmet_1 = require("react-helmet");
exports.HelmetHelper = function (props) {
    var meta = __assign({ "og:title": props.title, "twitter:title": props.title, "og:description": props.description, "twitter:description": props.description, "og:image": props.image, "twitter:image": props.image }, props.meta);
    return (React.createElement(react_helmet_1.Helmet, { title: props.title }, Object.keys(meta).map(function (metaName) { return meta[metaName] && React.createElement("meta", { key: metaName, property: metaName, content: meta[metaName] }); })));
};
//# sourceMappingURL=HelmetHelper.js.map