var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import PropTypes from 'prop-types';
import SortOrderType from '../../../Constants/SortOrderType';
import styled from 'styled-components';
var SortOrderIcon = function (_a) {
    var className = _a.className, sortOrder = _a.sortOrder, otherProps = __rest(_a, ["className", "sortOrder"]);
    return React.createElement("svg", __assign({ className: [
            className,
            'sort-order-icon',
        ]
            .filter(Boolean)
            .join(' '), viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, otherProps),
        React.createElement("path", { className: [
                'sort-order-icon__arrow',
                "sort-order-icon__arrow--" + SortOrderType.Ascending,
                sortOrder === SortOrderType.Ascending && 'is-active',
            ]
                .filter(Boolean)
                .join(' '), fillRule: "evenodd", clipRule: "evenodd", d: "M7 3.88L3.493 0 0 3.88h7z" }),
        React.createElement("path", { className: [
                'sort-order-icon__arrow',
                "sort-order-icon__arrow--" + SortOrderType.Descending,
                sortOrder === SortOrderType.Descending && 'is-active',
            ]
                .filter(Boolean)
                .join(' '), fillRule: "evenodd", clipRule: "evenodd", d: "M0 6l3.507 3.881L7 6H0z" }));
};
SortOrderIcon.propTypes = {
    className: PropTypes.string,
    sortOrder: PropTypes.oneOf(Object.values(SortOrderType)),
};
SortOrderIcon.defaultProps = {
    className: '',
};
export default styled(SortOrderIcon)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n    .sort-order-icon__arrow {\n        fill: gray;\n    }\n\n    .sort-order-icon__arrow--", " {\n        fill: blue;\n    }\n"], ["\n    .sort-order-icon__arrow {\n        fill: gray;\n    }\n\n    .sort-order-icon__arrow--", " {\n        fill: blue;\n    }\n"])), function (_a) {
    var sortOrder = _a.sortOrder;
    return sortOrder;
});
var templateObject_1;
//# sourceMappingURL=SortOrderIcon.js.map