Repository URL to install this package:
Version:
0.9.6 ▾
|
"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