Repository URL to install this package:
|
Version:
2.8.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function toErrorProps(props, state) {
const hasError = props.hasError || state.isValidInput === false;
const errorMessage = state.errorMessage || props.errorMessage || props.errorMessageFor;
return {
hasError,
errorMessage
};
}
exports.toErrorProps = toErrorProps; //# sourceMappingURL=toErrorProps.js.map