UNPKG

react-life-design

Version:
41 lines 2.13 kB
"use strict"; 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) t[p[i]] = s[p[i]]; return t; }; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var styled_components_1 = require("styled-components"); var Colors_1 = require("../Colors"); var Sizes_1 = require("../Sizes"); var ArrowIcon = styled_components_1.default.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: rotate(", "deg);\n transition: 0.25s all ease;\n"], ["\n transform: rotate(", "deg);\n transition: 0.25s all ease;\n"])), function (_a) { var degree = _a.degree; return degree; }); exports.default = React.memo(function (_a) { var width = _a.width, height = _a.height, color = _a.color, props = __rest(_a, ["width", "height", "color"]); return (React.createElement(ArrowIcon, __assign({ viewBox: '0 0 10.708 6.064', width: width || Sizes_1.default.s5, height: height || Sizes_1.default.s5 }, props), React.createElement("path", { d: 'M10.354 5.71l-5-5-5 5', fill: 'none', stroke: color || Colors_1.default.mongeral, strokeMiterlimit: '10', strokeWidth: '1.001' }))); }); var templateObject_1; //# sourceMappingURL=Arrow.js.map