@kushki/suka-react-system-icons
Version:
React component for Suk'a system icons
38 lines (34 loc) • 2.82 kB
JavaScript
function _extends() { _extends = Object.assign || 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); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
var Radio = forwardRef(function (_ref, ref) {
var _ref$color = _ref.color,
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
_ref$size = _ref.size,
size = _ref$size === void 0 ? 24 : _ref$size,
rest = _objectWithoutProperties(_ref, ["color", "size"]);
return /*#__PURE__*/React.createElement("svg", _extends({
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
width: size,
height: size,
viewBox: "0 0 24 24",
fill: "none",
stroke: color,
strokeWidth: "2",
strokeLinecap: "round",
strokeLinejoin: "round"
}, rest), /*#__PURE__*/React.createElement("path", {
d: "M12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14Z"
}), /*#__PURE__*/React.createElement("path", {
d: "M16.2399 7.75999C16.7978 8.31723 17.2404 8.97896 17.5423 9.70735C17.8442 10.4357 17.9997 11.2165 17.9997 12.005C17.9997 12.7935 17.8442 13.5742 17.5423 14.3026C17.2404 15.031 16.7978 15.6928 16.2399 16.25M7.75994 16.24C7.20208 15.6828 6.75953 15.021 6.45758 14.2926C6.15564 13.5642 6.00022 12.7835 6.00022 11.995C6.00022 11.2065 6.15564 10.4257 6.45758 9.69735C6.75953 8.96896 7.20208 8.30723 7.75994 7.74999M19.0699 4.92999C20.9446 6.80527 21.9978 9.34835 21.9978 12C21.9978 14.6516 20.9446 17.1947 19.0699 19.07M4.92994 19.07C3.05523 17.1947 2.00208 14.6516 2.00208 12C2.00208 9.34835 3.05523 6.80527 4.92994 4.92999"
}));
});
Radio.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
Radio.displayName = 'Radio';
export default Radio;