"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
exports.describeField = describeField;
var _mergeIds = _interopRequireDefault(require("./mergeIds"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
 * Creates an `aria-describedby` string in a consistent order from optional
 * `aria-describedby`, `errorId`, and `hintId` props.
 */
function describeField(props) {
  return (0, _mergeIds.default)(props['aria-describedby'], props.errorId, props.hintId) || undefined;
}
var _default = exports.default = describeField;