UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

21 lines 915 B
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); }; import React from "react"; export var transform = function (IconSymbol, rotate, flipH, flipV) { if (rotate === void 0) { rotate = 0; } if (flipH === void 0) { flipH = false; } if (flipV === void 0) { flipV = false; } return React.forwardRef(function (props, ref) { return (React.createElement(IconSymbol, __assign({}, props, { ref: ref, transform: "scale(".concat(flipH ? "-1" : "1", ", ").concat(flipV ? "-1" : "1", ") rotate(").concat(rotate, ")") }))); }); }; //# sourceMappingURL=transformIcon.js.map