"use strict";
exports.__esModule = true;
exports.SocialsShare = exports.cnSocialsShare = void 0;
var tslib_1 = require("tslib");
// @ts-nocheck
require("./SocialsShare.css");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
var react_share_1 = require("react-share");
var IconFacebook_1 = require("../../icons/IconFacebook/IconFacebook");
var IconLinkedin_1 = require("../../icons/IconLinkedin/IconLinkedin");
var IconTwitter_1 = require("../../icons/IconTwitter/IconTwitter");
var bem_1 = require("../../utils/bem");
var SocialButton_1 = require("../SocialButton/SocialButton");
var Typography_1 = require("../Typography");
exports.cnSocialsShare = (0, bem_1.cn)('SocialsShare');
var SocialsShare = function (_a) {
    var url = _a.url, title = _a.title;
    return (react_1["default"].createElement("div", { className: (0, exports.cnSocialsShare)() },
        title && (react_1["default"].createElement("div", { className: (0, exports.cnSocialsShare)('Title') },
            react_1["default"].createElement(Typography_1.Typography.Text, { weight: "bold", size: "xs", transform: "uppercase" }, title))),
        react_1["default"].createElement("div", { className: (0, exports.cnSocialsShare)('List') },
            react_1["default"].createElement(react_share_1.FacebookShareButton, { url: url },
                react_1["default"].createElement(SocialButton_1.SocialButton, { icon: IconFacebook_1.IconFacebook, as: "div" })),
            react_1["default"].createElement(react_share_1.TwitterShareButton, { url: url },
                react_1["default"].createElement(SocialButton_1.SocialButton, { icon: IconTwitter_1.IconTwitter, as: "div" })),
            react_1["default"].createElement(react_share_1.LinkedinShareButton, { url: url },
                react_1["default"].createElement(SocialButton_1.SocialButton, { icon: IconLinkedin_1.IconLinkedin, as: "div" })))));
};
exports.SocialsShare = SocialsShare;
