@carbon/icons-react
Version:
React components for icons in digital and software products using the Carbon Design System
60 lines (51 loc) • 1.73 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;
const CaretLeft = /*#__PURE__*/React__default["default"].forwardRef(function CaretLeft(_ref, ref) {
let {
children,
size = 16,
...rest
} = _ref;
if (size === "glyph" || size === "glyph" || size === "glyphpx") {
return /*#__PURE__*/React__default["default"].createElement(iconPropTypes.Icon, {
width: size,
height: size,
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 5 8",
fill: "currentColor",
...rest
}, _path || (_path = /*#__PURE__*/React__default["default"].createElement("path", {
d: "M5 8L0 4 5 0z"
})), 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
}, _path2 || (_path2 = /*#__PURE__*/React__default["default"].createElement("path", {
d: "M20 24L10 16 20 8z"
})), children);
});
if (process.env.NODE_ENV !== "production") {
CaretLeft.propTypes = iconPropTypes.iconPropTypes;
}
module.exports = CaretLeft;