import { isNil } from 'lodash';
function getSelectedItem(value, itemsMap) {
  return !isNil(value) && value in itemsMap ? value : null;
}
function itemToString(item, itemsMap) {
  return !isNil(item) && item in itemsMap ? itemsMap[item].props.children : '';
}
export { getSelectedItem, itemToString };