'use strict';

exports.__esModule = 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; };

var _ramda = require('ramda');

var _ramda2 = _interopRequireDefault(_ramda);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactSeeds = require('react-seeds');

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

var wrap = function wrap(propName, otherProps) {
	return function (value) {
		var _ref;

		return _react2.default.createElement(_reactSeeds.Seed, _extends({}, otherProps, (_ref = {}, _ref[propName] = value, _ref)));
	};
};

exports.default = _ramda2.default.cond([[_ramda2.default.complement(_ramda2.default.pipe(Number, isNaN)), // Is valid number
_ramda2.default.pipe(Number, wrap('basis', { shrink: 0 }))], [_ramda2.default.is(String), wrap('children')], [_ramda2.default.T, _ramda2.default.identity]]);
module.exports = exports['default'];