'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _Label = require('../components/Label');

var _Label2 = _interopRequireDefault(_Label);

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

function normalizeLabel(label) {
  return label && typeof label === 'string' ? _react2.default.createElement(
    _Label2.default,
    null,
    label
  ) : label;
}