UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

38 lines (35 loc) 2.19 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 ThreadIcon = /*#__PURE__*/React.forwardRef(function ThreadIcon(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: "M4 4H20C21 4 23 3 23 1.5 23 0 22 0 21 0H3C2 0 1 0 1 1.5 1 3 3 4 4 4ZM20 20H4C3 20 1 21 1 22.5 1 24 2 24 3 24H21C22 24 23 24 23 22.5 23 21 21 20 20 20ZM19 16H5C4.45 16 4 16.45 4 17 4 17.55 4.45 18 5 18H19C19.55 18 20 17.55 20 17 20 16.45 19.55 16 19 16ZM19 11H5C4.45 11 4 11.45 4 12 4 12.55 4.45 13 5 13H19C19.55 13 20 12.55 20 12 20 11.45 19.55 11 19 11ZM19 6H5C4.45 6 4 6.45 4 7 4 7.55 4.45 8 5 8H19C19.55 8 20 7.55 20 7 20 6.45 19.55 6 19 6Z" }) })); }); ThreadIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; ThreadIcon.defaultProps = { color: 'currentColor', size: '24' }; export { ThreadIcon as default }; //# sourceMappingURL=thread.js.map