import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsxs, jsx } from 'react/jsx-runtime';
import { styled } from '@mui/material/styles';
import MuiBox from '@mui/material/Box';
import Icon from './Icon.js';
import Typography from './Typography.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';
import '../_commonjsHelpers-1789f0cf.js';
import '@mui/material/Typography';
import '../theme/typography.js';

var PREFIX = "Status";
var StatusBox = styled(MuiBox)(function (_a) {
    var _b, _c;
    var theme = _a.theme;
    return (_b = {
            position: "relative",
            display: "flex",
            alignItems: "center",
            "& .icon": {
                marginRight: theme.spacing(0.5)
            }
        },
        _b["&." + PREFIX + "-secondary"] = (_c = {
                textTransform: "uppercase",
                letterSpacing: "1px",
                "& .MuiTypography-root": {
                    fontSize: theme.typography.fontSizeXs3,
                    fontFamily: theme.typography.fontFamilyHeadline
                }
            },
            _c[theme.breakpoints.down("sm")] = {
                "& .MuiTypography-root": {
                    fontSize: theme.typography.fontSizeXs4
                }
            },
            _c),
        _b);
});
var Point = styled("span")(function (_a) {
    var color = _a.color, theme = _a.theme;
    return ({
        display: "inline-block",
        width: theme.spacing(2),
        height: theme.spacing(2),
        marginRight: theme.spacing(1.5),
        left: 0,
        borderRadius: theme.borders.radius.rounded,
        backgroundColor: theme.palette.text[color !== null && color !== void 0 ? color : "primary"]
    });
});
var Status = function (_a) {
    var children = _a.children, _b = _a.variant, variant = _b === void 0 ? "primary" : _b, _c = _a.color, color = _c === void 0 ? "primary" : _c, _d = _a.point, point = _d === void 0 ? true : _d, iconKey = _a.iconKey;
    return (jsxs(StatusBox, __assign({ className: PREFIX + "-" + variant }, { children: [!iconKey && point && jsx(Point, { color: color }, void 0), iconKey && jsx(Icon, { iconKey: iconKey, size: "xs1", color: color }, void 0), jsx(Typography, __assign({ variant: "calloutBold", color: color, component: "span" }, { children: children }), void 0)] }), void 0));
};

export { Status as default };
