import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx } from 'react/jsx-runtime';
import { styled, useTheme } from '@mui/material/styles';
import useMediaQuery from '@mui/material/useMediaQuery';
import Icon from './Icon.js';
import '../icons/ArrowLeft.js';
import '../icons/ArrowRight.js';
import '../icons/CloseCircle.js';
import '../icons/InfoCircle.js';
import '../icons/ErrorCircle.js';
import '../icons/Attention.js';
import '../icons/HelpCircle.js';
import '../icons/Document.js';
import '../icons/DocumentText.js';
import '../icons/Lock.js';
import '../icons/Delete.js';
import '../icons/Users.js';
import '../icons/Stakefish.js';
import '../icons/Sound.js';
import '../icons/Beacon.js';
import '../icons/TriangleRight.js';
import '../icons/TriangleLeft.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/Sent.js';
import '../icons/Download.js';
import '../icons/Faster.js';
import '../icons/Slower.js';
import '../icons/Usb.js';
import '../icons/Key.js';
import '../icons/Edit.js';
import '../icons/Expand.js';
import '../icons/Collapse.js';
import '../icons/Success.js';
import '../icons/SuccessCircle.js';
import '../icons/Fail.js';
import '../icons/Desktop.js';
import '../icons/Mobile.js';
import '../icons/Loading.js';
import '../icons/Upload.js';
import '../icons/Check.js';
import '../icons/ChevronLeft.js';
import '../icons/ChevronRight.js';
import '../icons/Plus.js';
import '../icons/Minus.js';
import '../icons/Globe.js';
import '../icons/Link.js';
import '../icons/Copy.js';
import '../icons/Medium.js';
import '../icons/Twitter.js';
import '../icons/Telegram.js';
import '../icons/Eth.js';
import '../icons/Sort.js';
import '../icons/Close.js';
import '../icons/DollarSign.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../icons/Instagram.js';
import '../icons/LinkedIn.js';
import '../icons/Reddit.js';
import '../icons/YouTube.js';
import '../icons/Chrome.js';
import '../icons/CloudConnect.js';
import '../icons/Update.js';
import '../icons/Menu.js';
import '../icons/Settings.js';

var SocialIconVariant;
(function (SocialIconVariant) {
    SocialIconVariant["Telegram"] = "telegram";
    SocialIconVariant["Twitter"] = "twitter";
    SocialIconVariant["YouTube"] = "youTube";
    SocialIconVariant["Instagram"] = "instagram";
    SocialIconVariant["LinkedIn"] = "linkedIn";
    SocialIconVariant["Medium"] = "medium";
    SocialIconVariant["Reddit"] = "reddit";
})(SocialIconVariant || (SocialIconVariant = {}));
var IconBox = styled("a")(function (_a) {
    var _b;
    var theme = _a.theme;
    return (_b = {
            display: "flex",
            alignItems: "center",
            justifyContent: "center",
            width: theme.spacing(5.625),
            height: theme.spacing(5.625),
            color: theme.palette.gray[900],
            borderRadius: theme.borders.radius.rounded,
            backgroundColor: theme.palette.primary.main,
            transition: theme.transitions.create(["background-color", "color"]),
            "&:hover": {
                color: theme.palette.primary.main,
                backgroundColor: theme.palette.gray[900]
            }
        },
        _b[theme.breakpoints.down("sm")] = {
            width: theme.spacing(4),
            height: theme.spacing(4)
        },
        _b);
});
var SocialIcon = function (_a) {
    var variant = _a.variant, url = _a.url;
    var theme = useTheme();
    var isMobile = useMediaQuery(theme.breakpoints.down("sm"));
    return (jsx(IconBox, __assign({ href: url, target: "_blank", rel: "noopener noreferrer" }, { children: jsx(Icon, { iconKey: variant, size: isMobile ? "xs1" : "sm" }, void 0) }), void 0));
};

export { SocialIconVariant, SocialIcon as default };
