1 | const _excluded = ["className"];
|
2 |
|
3 | function _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 |
|
5 | function _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 |
|
7 | import cn from 'classnames';
|
8 | import * as React from 'react';
|
9 | import Button from './Button';
|
10 |
|
11 | function CalendarButton(_ref) {
|
12 | let {
|
13 | className
|
14 | } = _ref,
|
15 | props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
16 |
|
17 | return React.createElement(Button, _extends({}, props, {
|
18 | tabIndex: undefined,
|
19 | className: cn(className, 'rw-calendar-btn')
|
20 | }));
|
21 | }
|
22 |
|
23 | export default CalendarButton; |
\ | No newline at end of file |