UNPKG

wix-style-react

Version:
26 lines (20 loc) 1.02 kB
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } import React from 'react'; import * as Composite from '../Composite'; import Label from '../Label'; import GoogleAddressInput from '../GoogleAddressInput'; import InputAreaWithLabelComposite from '../Composite/InputAreaWithLabelComposite/InputAreaWithLabelComposite'; var GoogleAddressInputWithLabel = function GoogleAddressInputWithLabel(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, ['children']); return React.createElement( InputAreaWithLabelComposite, props, children ); }; GoogleAddressInputWithLabel.propTypes = { children: Composite.children(Composite.optional(Label), Composite.once(GoogleAddressInput)) }; GoogleAddressInputWithLabel.displayName = 'GoogleAddressInputWithLabel'; export default GoogleAddressInputWithLabel;