var getItemStatus = function getItemStatus(_ref) {
  var isUncontrolled = _ref.isUncontrolled,
    current = _ref.current,
    status = _ref.status,
    index = _ref.index,
    item = _ref.item;
  if (item.disabled) {
    return 'inactive';
  }
  if (!isUncontrolled) {
    return status || item.status || 'inactive';
  }
  if (current > index) {
    return 'completed';
  }
  if (current === index) {
    return status || 'active';
  }
  return 'inactive';
};

export { getItemStatus };
