@td-design/react-native
Version:
react-native UI组件库
27 lines • 1.35 kB
JavaScript
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React, { memo } from 'react';
import { SvgXml } from 'react-native-svg';
import { px } from '../helpers/normalize';
import { getIconColor } from './helper';
let IconMinus = _ref => {
let {
size,
color,
...rest
} = _ref;
const xml = `
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M19 14H5C4.73481 14 4.48049 13.8946 4.29299 13.7071C4.10549 13.5195 4.00015 13.2652 4.00015 13C4.00015 12.7348 4.10549 12.4805 4.29299 12.2929C4.48049 12.1054 4.73481 12 5 12H19C19.2652 12 19.5195 12.1054 19.707 12.2929C19.8945 12.4805 19.9998 12.7348 19.9998 13C19.9998 13.2652 19.8945 13.5195 19.707 13.7071C19.5195 13.8946 19.2652 14 19 14Z" fill="${getIconColor(color, 0, '#999999')}"/>
</svg>
`;
return /*#__PURE__*/React.createElement(SvgXml, _extends({
xml: xml,
width: size,
height: size
}, rest));
};
IconMinus.defaultProps = {
size: px(16)
};
export default /*#__PURE__*/memo(IconMinus);
//# sourceMappingURL=IconMinus.js.map