@pathwright/pathicons
Version:
Pathwright icons, synced from Figma to React components
38 lines (35 loc) • 2.18 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 { 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 TextAlignCenterIcon = /*#__PURE__*/React.forwardRef(function TextAlignCenterIcon(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: "M6 4H18C18.55 4 19 3.55 19 3 19 2.45 18.55 2 18 2H6C5.45 2 5 2.45 5 3 5 3.55 5.45 4 6 4ZM3 10H21C21.55 10 22 9.55 22 9 22 8.45 21.55 8 21 8H3C2.45 8 2 8.45 2 9 2 9.55 2.45 10 3 10ZM6 14C5.45 14 5 14.45 5 15 5 15.55 5.45 16 6 16H18C18.55 16 19 15.55 19 15 19 14.45 18.55 14 18 14H6ZM21 20H3C2.45 20 2 20.45 2 21 2 21.55 2.45 22 3 22H21C21.55 22 22 21.55 22 21 22 20.45 21.55 20 21 20Z"
})
}));
});
TextAlignCenterIcon.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
TextAlignCenterIcon.defaultProps = {
color: 'currentColor',
size: '24'
};
export { TextAlignCenterIcon as default };
//# sourceMappingURL=text-align-center.js.map