'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
var toErrors = exports.toErrors = function toErrors(errorMessages) {
  return errorMessages.map(function (e) {
    return { text: e, type: 'error' };
  });
};