@td-design/react-native
Version:
react-native UI组件库
27 lines • 1.18 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 IconCheckboxHalfchecked = _ref => {
let {
size,
color,
...rest
} = _ref;
const xml = `
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
<path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14v14zm-2-2H7V7h10v10z" fill="${getIconColor(color, 0, '#999999')}"></path>
</svg>
`;
return /*#__PURE__*/React.createElement(SvgXml, _extends({
xml: xml,
width: size,
height: size
}, rest));
};
IconCheckboxHalfchecked.defaultProps = {
size: px(16)
};
export default /*#__PURE__*/memo(IconCheckboxHalfchecked);
//# sourceMappingURL=IconCheckboxHalfchecked.js.map