@carbon/icons-react
Version:
React components for icons in digital and software products using the Carbon Design System
88 lines (77 loc) • 3.1 kB
JavaScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var React = require('react');
var iconPropTypes = require('./iconPropTypes-b192e04d.js');
require('@carbon/icon-helpers');
require('prop-types');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var _path, _path2, _path3, _path4;
const Redo = /*#__PURE__*/React__default["default"].forwardRef(function Redo(_ref, ref) {
let {
children,
size = 16,
...rest
} = _ref;
if (size === 16 || size === "16" || size === "16px") {
return /*#__PURE__*/React__default["default"].createElement(iconPropTypes.Icon, {
width: size,
height: size,
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 16 16",
fill: "currentColor",
...rest
}, _path || (_path = /*#__PURE__*/React__default["default"].createElement("path", {
d: "M4,8c-1.2,0-2,0.8-2,2c0,1.2,0.8,2,2,2h3v1H4c-1.7,0-3-1.2-3-3c0-1.7,1.3-3,3-3l9.1,0l-2-2l0.7-0.7 L15,7.5l-3.2,3.2L11.1,10l2-2L4,8z"
})), children);
}
if (size === 20 || size === "20" || size === "20px") {
return /*#__PURE__*/React__default["default"].createElement(iconPropTypes.Icon, {
width: size,
height: size,
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
...rest
}, _path2 || (_path2 = /*#__PURE__*/React__default["default"].createElement("path", {
d: "M5,9.3c-1.5,0-2.8,1.3-2.8,2.7c0,1.5,1.3,2.7,2.8,2.7h4V16H5c-2.3,0-4-1.7-4-4c0-2.2,1.8-4,4-4h11.6 l-2.5-2.5L15,4.6l4,4l-4,4l-0.9-0.9l2.5-2.5H5z"
})), children);
}
if (size === 24 || size === "24" || size === "24px") {
return /*#__PURE__*/React__default["default"].createElement(iconPropTypes.Icon, {
width: size,
height: size,
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
...rest
}, _path3 || (_path3 = /*#__PURE__*/React__default["default"].createElement("path", {
d: "M6.8,11.2c-1.8,0-3.2,1.7-3.2,3.3c0,1.5,1.5,3.2,3.2,3.2H10v1.5H6.8C4.6,19.2,2,17,2,14.5s2-4.8,4.8-4.8 h12.4l-3-3l1.1-1.1l4.8,4.8l-4.8,4.8l-1.1-1.1l3-3H6.8z"
})), children);
}
return /*#__PURE__*/React__default["default"].createElement(iconPropTypes.Icon, {
width: size,
height: size,
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 32 32",
fill: "currentColor",
...rest
}, _path4 || (_path4 = /*#__PURE__*/React__default["default"].createElement("path", {
d: "M12,10H24.1851L20.5977,6.4141,22,5,28,11,22,17l-1.4023-1.4146L24.1821,12H12a6,6,0,0,0,0,12h8v2H12a8,8,0,0,1,0-16Z"
})), children);
});
if (process.env.NODE_ENV !== "production") {
Redo.propTypes = iconPropTypes.iconPropTypes;
}
module.exports = Redo;