@pathwright/pathicons
Version:
Pathwright icons, synced from Figma to React components
40 lines (37 loc) • 2.16 kB
JavaScript
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
import React from 'react';
import PropTypes from 'prop-types';
import { jsx } from 'react/jsx-runtime';
var _excluded = ["color", "size"];
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
var TriangleLargeIcon = /*#__PURE__*/React.forwardRef(function TriangleLargeIcon(props, ref) {
var color = props.color,
size = props.size,
otherProps = _objectWithoutProperties(props, _excluded);
return /*#__PURE__*/jsx("svg", _objectSpread(_objectSpread({
ref: ref,
xmlns: "http://www.w3.org/2000/svg",
width: size,
height: size,
viewBox: "0 0 24 24",
fill: color
}, otherProps), {}, {
children: /*#__PURE__*/jsx("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 4C12.3589 4 12.6902 4.19229 12.8682 4.50386L20.8682 18.5039C21.0451 18.8134 21.0438 19.1936 20.8649 19.5019C20.686 19.8102 20.3565 20 20 20H4C3.64353 20 3.31401 19.8102 3.13509 19.5019C2.95617 19.1936 2.9549 18.8134 3.13176 18.5039L11.1318 4.50386C11.3098 4.19229 11.6411 4 12 4ZM5.72318 18H18.2768L12 7.01556L5.72318 18Z"
})
}));
});
TriangleLargeIcon.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
TriangleLargeIcon.defaultProps = {
color: 'currentColor',
size: '24'
};
export { TriangleLargeIcon as default };
//# sourceMappingURL=triangle-large.js.map