UNPKG

1.07 kBJavaScriptView Raw
1const _excluded = ["className"];
2
3function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
5function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
7import cn from 'classnames';
8import * as React from 'react';
9import Button from './Button';
10
11function CalendarButton(_ref) {
12 let {
13 className
14 } = _ref,
15 props = _objectWithoutPropertiesLoose(_ref, _excluded);
16
17 return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
18 tabIndex: undefined,
19 className: cn(className, 'rw-calendar-btn')
20 }));
21}
22
23export default CalendarButton;
\No newline at end of file