"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const components_1 = require("../../../../components/index.js");
const utils_1 = require("../../../../components/Media/Image/utils.js");
const utils_2 = require("../../../../utils/index.js");
const b = (0, utils_2.block)('social-icon');
const SocialIcon = ({ icon, url, className, urlTitle }) => {
    const iconData = (0, utils_1.getMediaImage)(icon);
    const { alt } = iconData;
    return ((0, jsx_runtime_1.jsx)("a", { href: url, "aria-label": alt, title: urlTitle || alt, target: "_blank", rel: "noopener noreferrer", className: b(null, className), children: (0, jsx_runtime_1.jsx)(components_1.Image, { className: b('icon'), ...iconData }) }));
};
exports.default = SocialIcon;
//# sourceMappingURL=SocialIcon.js.map
