import React__default, { Children } from 'react';

var getCorrectHeight = function getCorrectHeight(listMaxHeight) {
  if (Number.isNaN(Number(listMaxHeight))) {
    return listMaxHeight.toString();
  }
  return "".concat(listMaxHeight, "rem");
};
var childrenWithProps = function childrenWithProps(children, additionalProps) {
  return Children.map(children, function (child) {
    if (/*#__PURE__*/React__default.isValidElement(child)) {
      return /*#__PURE__*/React__default.cloneElement(child, additionalProps);
    }
    return child;
  });
};

export { childrenWithProps, getCorrectHeight };
