'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _extends2 = require('babel-runtime/helpers/extends');

var _extends3 = _interopRequireDefault(_extends2);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _lodash = require('lodash');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (props, extraProps) {
  return _react2.default.Children.map(props.children, function (child) {
    return _react2.default.cloneElement(child, (0, _extends3.default)({}, (0, _lodash.omit)(props, 'children'), extraProps));
  });
};