UNPKG

react-flaticons

Version:

A React component library that provides easy access to free vector icons from the Flaticon website.

40 lines 5.72 kB
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } var _excluded = ["color", "size"]; 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); } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } 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, useContext } from 'react'; import PropTypes from 'prop-types'; import IconContext from '../context'; var NetworkCloud = /*#__PURE__*/forwardRef(function (_ref, ref) { var _ref2, _ref3; var color = _ref.color, size = _ref.size, rest = _objectWithoutProperties(_ref, _excluded); var iconContext = useContext(IconContext); var mergedProps = _objectSpread({ color: (_ref2 = color !== null && color !== void 0 ? color : iconContext.color) !== null && _ref2 !== void 0 ? _ref2 : 'currentColor', size: (_ref3 = size !== null && size !== void 0 ? size : iconContext.size) !== null && _ref3 !== void 0 ? _ref3 : '20px' }, rest); return /*#__PURE__*/React.createElement("svg", _extends({ ref: ref, xmlns: "http://www.w3.org/2000/svg", width: mergedProps.size, height: mergedProps.size, viewBox: "0 0 24 24", fill: mergedProps.color }, mergedProps), /*#__PURE__*/React.createElement("path", { d: "M490.667 426.667H316.075a63.999 63.999 0 0 0-38.741-38.741v-88.789c28.672 0 53.76-.256 66.027-.491a110.913 110.913 0 0 0 22.741-2.795c39.201-9.122 69.811-39.732 78.933-78.933 13.398-56.167-20.211-112.828-75.925-128l-3.669-.811c-6.4-1.429-9.621-2.133-12.544-9.152-27.074-65.303-101.96-96.295-167.263-69.222A127.999 127.999 0 0 0 110.4 97.237a135.818 135.818 0 0 0-1.216 58.283c-37.88 16.299-55.374 60.219-39.076 98.098a74.668 74.668 0 0 0 48.654 42.446 78.771 78.771 0 0 0 17.771 2.603c13.973.384 54.059.555 95.872.555h2.261v88.725a63.998 63.998 0 0 0-38.741 38.72H21.333C9.551 426.667 0 436.218 0 448c0 11.782 9.551 21.333 21.333 21.333h174.592c11.559 33.178 47.826 50.704 81.004 39.146a63.613 63.613 0 0 0 39.145-39.146h174.592c11.782 0 21.333-9.551 21.333-21.333.001-11.782-9.55-21.333-21.332-21.333zM137.728 256a36.32 36.32 0 0 1-8.107-1.216 31.425 31.425 0 0 1-21.76-21.739c-4.54-15.55 3.256-32.04 18.155-38.4 19.159-8.109 29.761-28.774 25.173-49.067-9.726-46.114 19.773-91.381 65.887-101.106a84.994 84.994 0 0 1 4.641-.846 89.43 89.43 0 0 1 12.565-.96c34.665-.12 65.98 20.676 79.317 52.672a56.404 56.404 0 0 0 44.459 34.795c33.514 9.281 53.635 43.463 45.483 77.269a63.445 63.445 0 0 1-46.933 46.763 66.642 66.642 0 0 1-14.037 1.749c-14.784.278-188.736.513-204.843.086zM256 469.333c-11.782 0-21.333-9.551-21.333-21.333 0-11.782 9.551-21.333 21.333-21.333 11.782 0 21.333 9.551 21.333 21.333 0 11.782-9.551 21.333-21.333 21.333z" })); }); NetworkCloud.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; NetworkCloud.displayName = 'NetworkCloud'; export default NetworkCloud;