synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
12 lines • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
var synapseTypes_1 = require("../../utils/synapseTypes");
var SortIcon = function (_a) {
var _b;
var direction = _a.direction, active = _a.active, props = (0, tslib_1.__rest)(_a, ["direction", "active"]);
return (react_1.default.createElement("svg", (0, tslib_1.__assign)({}, props, { className: "SRC-Sort-Icon-" + (active ? 'Active' : 'Inactive') + " " + ((_b = props.className) !== null && _b !== void 0 ? _b : ''), width: "21", height: "17", viewBox: "0 0 21 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }), direction.toUpperCase() === synapseTypes_1.Direction.DESC ? (react_1.default.createElement("path", { className: "SRC-Sort-Path", d: "M8.5 9V7H16.5V9H8.5ZM8.5 15V13H12.5V15H8.5ZM8.5 3V1H20.5V3H8.5ZM4.5 13H7L3.5 16.5L0 13H2.5V0H4.5V13Z", fill: "#9E9E9E" })) : (react_1.default.createElement("path", { className: "SRC-Sort-Path", d: "M12.5 8L12.5 10L4.5 10V8H12.5ZM12.5 2V4H8.5V2H12.5ZM12.5 14V16H0.5V14L12.5 14ZM16.5 4H14L17.5 0.5L21 4H18.5V17H16.5V4Z", fill: "#9E9E9E" }))));
};
exports.default = SortIcon;
//# sourceMappingURL=Sort.js.map