UNPKG

@carbon/icons-react

Version:

React components for icons in digital and software products using the Carbon Design System

49 lines (45 loc) 2.21 kB
/** * 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 Icon_js = require('./Icon.js'); var iconPropTypes = require('./iconPropTypes-BoFFIf2P.js'); require('@carbon/icon-helpers'); require('prop-types'); var _path, _path2; let didWarnAboutDeprecation = false; const DirectLink = /*#__PURE__*/React.forwardRef(function DirectLink({ children, size = 16, ...rest }, ref) { if (process.env.NODE_ENV !== "production") { if (!didWarnAboutDeprecation) { didWarnAboutDeprecation = true; console.warn("The current icon has been replaced with the correct version of the App icon, use the most appropriate ibm-cloud--direct-link icon variant instead. As a result, the DirectLink component will be removed in the next major version of @carbon/icons-react."); } } return /*#__PURE__*/React.createElement(Icon_js, { width: size, height: size, ref: ref, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", fill: "currentColor", ...rest }, _path || (_path = /*#__PURE__*/React.createElement("path", { d: "M20.4131,14.584,12.416,6.5869a2.0016,2.0016,0,0,0-2.832,0L1.5869,14.584a2.0016,2.0016,0,0,0,0,2.832l3.2915,3.2915L3,22.5859,4.4141,24l1.8784-1.8784L9.584,25.4131a2.0016,2.0016,0,0,0,2.832,0l2.2559-2.2559-1.4156-1.4155L10.998,23.999,3.001,16.002l7.997-8.001,8.001,8.001L17.5,17.5l1.4146,1.4146,1.4985-1.4986a2.0016,2.0016,0,0,0,0-2.832Z" })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", { d: "M30.4131,14.584l-3.2915-3.2915L29,9.4141,27.5859,8,25.7075,9.8784,22.416,6.5869a2.0016,2.0016,0,0,0-2.832,0L17.3281,8.8428l1.4146,1.4145L20.998,8.001l8.001,8.001-8.001,7.997-7.997-7.997,1.5-1.501-1.4156-1.4156L11.5869,14.584a2.0016,2.0016,0,0,0,0,2.832l7.9971,7.9971a2.0016,2.0016,0,0,0,2.832,0l7.9971-7.9971a2.0016,2.0016,0,0,0,0-2.832Z" })), children); }); if (process.env.NODE_ENV !== "production") { DirectLink.propTypes = iconPropTypes.iconPropTypes; } module.exports = DirectLink;