import { _ as __assign } from '../tslib.es6-20a2a300.js';
import { jsxs, jsx } from 'react/jsx-runtime';
import Icon from './Icon.js';
import { m as makeStyles } from '../makeStyles-c9a99c7a.js';
import { a as createStyles } from '../createStyles-16423e9e.js';
import { B as Box } from '../Box-581dc061.js';
import '../icons/ArrowRight.js';
import '../icons/ArrowRightCircle.js';
import '../icons/Check.js';
import '../icons/CheckCircle.js';
import '../icons/ChevronRight.js';
import '../icons/CrossCircle.js';
import '../icons/DollarSign.js';
import '../icons/InfoCircle.js';
import '../icons/Link.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/TriangleLeft.js';
import '../icons/Copy.js';
import '../icons/SortUp.js';
import '../icons/Cross.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../theme/colors.js';
import '../defaultTheme-49a26576.js';
import 'react';
import '../styled-339d0187.js';
import '../clsx.m-6243b874.js';
import '../hoist-non-react-statics.cjs-b718ab87.js';

var useStyles = makeStyles(function (theme) {
    return createStyles({
        box: {
            display: "flex",
            "& .icon:first-child": {
                marginRight: "-1px"
            },
            "& .icon:last-child": {
                marginLeft: "-1px"
            }
        },
        defaultIcon: {
            color: theme.palette.icon.inverseSecondary
        },
        activeIcon: {
            color: theme.palette.icon.primary
        }
    });
});
var TableSortLabelIcon = function (_a) {
    var active = _a.active, order = _a.order;
    var classes = useStyles();
    return (jsxs(Box, __assign({ lineHeight: 1, className: "TableSortLabelIcon " + classes.box }, { children: [jsx(Icon, { iconKey: "sortUp", rotate: 180, size: "xxs", className: active && order === "desc" ? classes.activeIcon : classes.defaultIcon }, void 0), jsx(Icon, { iconKey: "sortUp", size: "xxs", className: active && order === "asc" ? classes.activeIcon : classes.defaultIcon }, void 0)] }), void 0));
};

export { TableSortLabelIcon as default };
