@pathwright/pathicons
Version:
Pathwright icons, synced from Figma to React components
44 lines (41 loc) • 2.38 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 TagIcon = /*#__PURE__*/React.forwardRef(function TagIcon(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", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M5 7C5 5.89543 5.89543 5 7 5C8.10457 5 9 5.89543 9 7C9 8.10457 8.10457 9 7 9C5.89543 9 5 8.10457 5 7Z"
}), /*#__PURE__*/jsx("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M4.29289 1.29289C4.48043 1.10536 4.73478 1 5 1H10C10.2652 1 10.5196 1.10536 10.7071 1.29289L22.7071 13.2929C23.0976 13.6834 23.0976 14.3166 22.7071 14.7071L14.7071 22.7071C14.3166 23.0976 13.6834 23.0976 13.2929 22.7071L1.29289 10.7071C1.10536 10.5196 1 10.2652 1 10V5C1 4.73478 1.10536 4.48043 1.29289 4.29289L4.29289 1.29289ZM5.41421 3L3 5.41421V9.58579L14 20.5858L20.5858 14L9.58579 3H5.41421Z"
})]
}));
});
TagIcon.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
TagIcon.defaultProps = {
color: 'currentColor',
size: '24'
};
export { TagIcon as default };
//# sourceMappingURL=tag.js.map