@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.46 kB
JavaScript
const _excluded = ["bold", "width", "height"];
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
import React from "react";
import PropTypes from "prop-types";
const IconBookmarkSimple = props => {
const _props$bold = props.bold,
bold = _props$bold === void 0 ? true : _props$bold,
_props$width = props.width,
width = _props$width === void 0 ? "24px" : _props$width,
_props$height = props.height,
height = _props$height === void 0 ? "24px" : _props$height,
restProps = _objectWithoutPropertiesLoose(props, _excluded);
if (bold) {
return /*#__PURE__*/React.createElement("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
"aria-hidden": "true",
fill: "currentColor",
width: width,
height: height
}, restProps), /*#__PURE__*/React.createElement("path", {
d: "M16.834 2.25h-10.5a1.875 1.875 0 0 0-1.875 1.875v16.5a1.125 1.125 0 0 0 1.72.954l5.404-3.375 5.404 3.375a1.126 1.126 0 0 0 1.722-.954v-16.5a1.875 1.875 0 0 0-1.875-1.875m-.375 16.345-4.28-2.674a1.13 1.13 0 0 0-1.193 0l-4.278 2.674V4.5h9.75z"
}));
}
return /*#__PURE__*/React.createElement("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
"aria-hidden": "true",
fill: "currentColor",
width: width,
height: height
}, restProps), /*#__PURE__*/React.createElement("path", {
d: "M17.25 2.625H6.75a1.5 1.5 0 0 0-1.5 1.5v16.5a.75.75 0 0 0 1.148.636L12 17.76l5.603 3.501a.75.75 0 0 0 1.147-.636v-16.5a1.5 1.5 0 0 0-1.5-1.5m0 16.648-4.853-3.033a.75.75 0 0 0-.795 0L6.75 19.273V4.125h10.5z"
}));
};
IconBookmarkSimple.propTypes = process.env.NODE_ENV !== "production" ? {
bold: PropTypes.bool,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
className: PropTypes.string,
fill: PropTypes.string,
'aria-hidden': PropTypes.bool,
'aria-label': PropTypes.string
} : {};
export { IconBookmarkSimple as default };
IconBookmarkSimple;