@icons-pack/react-simple-icons
Version:
This package provides the Simple Icons packaged as a set of React components.
43 lines (38 loc) • 2.92 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 _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 Trainerroad = /*#__PURE__*/forwardRef(function Trainerroad(_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,
_ref$title = _ref.title,
title = _ref$title === void 0 ? 'trainerroad' : _ref$title,
others = _objectWithoutPropertiesLoose(_ref, ["color", "size", "title"]);
return /*#__PURE__*/React.createElement("svg", _extends({
xmlns: "http://www.w3.org/2000/svg",
width: size,
height: size,
fill: color,
viewBox: "0 0 24 24",
ref: ref
}, others), /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("path", {
d: "M3.489 2.393L1.28 14.558c.862-1.684 2.586-2.817 4.574-2.817h.007a5.08 5.08 0 0 1 2.893.9l-.017-.011a3.23 3.23 0 0 0 .878-1.336l.007-.023c.413-1.328-.787-5.472 3.662-5.537 2.222-.031 5.067 1.815 4.991 1.804-3.993-.614-5.262-.787-6.241 1.115-.889 1.726-.657 3.163-1.802 4.24-.979.923-3.32 1.534-4.048 1.383-.33-.07.837-.38 1.921-1.136a4.36 4.36 0 1 0 2.09 4.058v-.014c.251.145.49.294.711.444a5.146 5.146 0 0 1-3.087 3.966l-.034.013h9.235c-.733-1.264-3.514-5.266-9.87-6.402.783-.387 7.589-.197 13.545 5.38L24 2.395zm6.528 1.588c.592.019 1.176.177 1.664.294 1.338.32 2.533.674 2.372.747-.033.014-.586-.064-.816-.088a4.118 4.118 0 0 0-1.558.072L11.707 5c-2.099.503-2.857 2.961-3 3.182-.017.024-1.186-.6-1.274-1.826-.062-.893.258-1.751 1.525-2.223l.002.002a2.75 2.75 0 0 1 1.057-.154zm5.389 4.092c.65-.008 1.469.085 2.505.305a8.971 8.971 0 0 0-1.865 1.456l-.002.002c-1.07 1.098-2.061 2.566-1.691 3.379.37.813 2.652 1.826 4.3 2.92.851.568 1.514 2.558 1.516 2.565-3.11-2.416-5.368-3.096-7.047-4.1-1.97-1.185-.712-4.057-.114-5.3.342-.704.964-1.209 2.397-1.227zM.759 17.427L0 21.607h3.904C2.196 20.89.974 19.323.76 17.451z"
}));
});
Trainerroad.propTypes = {
/**
* Hex color or color name
*/
color: PropTypes.string,
/**
* The size of the Icon.
*/
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
/**
* The title provides an accessible short text description to the SVG
*/
title: PropTypes.string
};
export default Trainerroad;