'use strict';

function convertLegacyProps(type) {
  switch (type) {
    case "danger":
      return { danger: true };
    case "warning":
      return { warning: true };
    case "success":
      return { success: true };
    default:
      return { type };
  }
}

exports.convertLegacyProps = convertLegacyProps;
//# sourceMappingURL=utils.cjs.map
