"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetaInfoItem = void 0;
var react_1 = __importDefault(require("react"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var styles_1 = require("./styles");
var MetaInfoItem = function (_a) {
    var title = _a.title, content = _a.content, isLink = _a.isLink, children = _a.children;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement("div", { "data-reltio-id": "image-meta-info-item", className: styles.root },
        react_1.default.createElement("span", { className: styles.title }, title),
        isLink ? (react_1.default.createElement("a", { className: styles.link, href: content }, ui_i18n_1.default.text('link'))) : (react_1.default.createElement("span", { className: styles.content }, content || children))));
};
exports.MetaInfoItem = MetaInfoItem;
