UNPKG

1.04 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 React from 'react';
9import Button from './Button';
10
11function InputAddon(_ref) {
12 let {
13 className
14 } = _ref,
15 props = _objectWithoutPropertiesLoose(_ref, _excluded);
16
17 return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
18 className: cn(className, 'rw-input-addon rw-picker-btn')
19 }));
20}
21
22export default InputAddon;
\No newline at end of file