UNPKG

@pathwright/pathicons

Version:

Pathwright icons, synced from Figma to React components

38 lines (35 loc) 1.93 kB
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 PauseIcon = /*#__PURE__*/React.forwardRef(function PauseIcon(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", { d: "M17 2C15.35 2 14 3.35 14 5V19C14 20.65 15.35 22 17 22 18.65 22 20 20.65 20 19V5C20 3.35 18.65 2 17 2ZM7 2C5.35 2 4 3.35 4 5V19C4 20.65 5.35 22 7 22 8.65 22 10 20.65 10 19V5C10 3.35 8.65 2 7 2Z" }) })); }); PauseIcon.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; PauseIcon.defaultProps = { color: 'currentColor', size: '24' }; export { PauseIcon as default }; //# sourceMappingURL=pause.js.map