'use strict';

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

var _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; };

exports.default = JoinedInputRow;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _cspaceInput = require('cspace-input');

var _JoinedInputRow = require('../../../styles/cspace-ui/JoinedInputRow.css');

var _JoinedInputRow2 = _interopRequireDefault(_JoinedInputRow);

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

var TabularCompoundInput = _cspaceInput.components.TabularCompoundInput;
function JoinedInputRow(props) {
  // For now use a TabularCompoundInput just for layout.

  // TODO: This should be a separate, layout-only component not based on an input, since it
  // should have no effect on data. This works, as long as a name prop is not supplied, but
  // it's brittle, and TabularCompoundInput does extra work that's not needed.

  return _react2.default.createElement(TabularCompoundInput, _extends({ className: _JoinedInputRow2.default.common }, props, { name: undefined }));
}

JoinedInputRow.propTypes = TabularCompoundInput.propTypes;