UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

38 lines (35 loc) 2.26 kB
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; import React from 'react'; import PropTypes from 'prop-types'; import { jsx } from 'react/jsx-runtime'; var _excluded = ["color", "size"]; function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } var TrianglesIcon = /*#__PURE__*/React.forwardRef(function TrianglesIcon(props, ref) { var color = props.color, size = props.size, otherProps = _objectWithoutProperties(props, _excluded); return /*#__PURE__*/jsx("svg", _objectSpread(_objectSpread({ ref: ref, xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: color }, otherProps), {}, { children: /*#__PURE__*/jsx("path", { d: "M5.99999 9.98H18C18.38 9.98 18.73 9.77001 18.89 9.43001 19.05 9.09 19.02 8.69001 18.8 8.38L12.8.380005C12.42-.119995 11.58-.119995 11.2.380005L5.19999 8.38C4.96999 8.68001 4.93999 9.09 5.10999 9.43001 5.27999 9.77001 5.61999 9.98 5.99999 9.98ZM18 13.98H5.99999C5.61999 13.98 5.26999 14.19 5.10999 14.53 4.94999 14.87 4.97999 15.27 5.19999 15.58L11.2 23.58C11.39 23.83 11.68 23.98 12 23.98 12.32 23.98 12.61 23.83 12.8 23.58L18.8 15.58C19.03 15.28 19.06 14.87 18.89 14.53 18.72 14.19 18.38 13.98 18 13.98Z" }) })); }); TrianglesIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; TrianglesIcon.defaultProps = { color: 'currentColor', size: '24' }; export { TrianglesIcon as default }; //# sourceMappingURL=triangles.js.map