@pathwright/pathicons
Version:
Pathwright icons, synced from Figma to React components
40 lines (37 loc) • 2.14 kB
JavaScript
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 { jsxs, 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 BadgeEditIcon = /*#__PURE__*/React.forwardRef(function BadgeEditIcon(props, ref) {
var color = props.color,
size = props.size,
otherProps = _objectWithoutProperties(props, _excluded);
return /*#__PURE__*/jsxs("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: "M22 1H2C1.45 1 1 1.45 1 2C1 20.61 11.36 22.89 11.8 22.98C11.87 22.99 11.93 23 12 23C12.07 23 12.13 22.99 12.2 22.98C12.64 22.89 23 20.61 23 2C23 1.45 22.55 1 22 1ZM12 20.97C10.65 20.58 3.33 17.79 3.01 3H20.99C20.67 17.79 13.35 20.58 12 20.97Z"
}), /*#__PURE__*/jsx("path", {
d: "M8 15H10L16 9 14 7 8 13V15ZM18 7C18 7 19 6 18 5 17 4 16 5 16 5L15 6 17 8 18 7Z"
})]
}));
});
BadgeEditIcon.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
BadgeEditIcon.defaultProps = {
color: 'currentColor',
size: '24'
};
export { BadgeEditIcon as default };
//# sourceMappingURL=badge-edit.js.map