@react-form-builder/core
Version:
React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required
15 lines (14 loc) • 727 B
JavaScript
import { useCallback as s, createElement as p } from "react";
import { useComponentData as a } from "../../../utils/contexts/ComponentDataContext.js";
import { useStore as c } from "../../../utils/contexts/StoreContext.js";
import { namedObserver as i } from "../../../utils/namedObserver.js";
import { useErrorModel as f } from "../../../utils/useErrorModel.js";
import { useWrapperState as u } from "../../../utils/useWrapperState.js";
const l = ({ children: e }) => {
const o = a(), t = c(), r = f(), n = s(() => ({}), []), m = { ...u(o, r, t.form.errorProps, n).ownProps, error: o.field?.error };
return p(r.component, m, e);
}, b = i("Erroneous", l);
export {
b as Erroneous
};
//# sourceMappingURL=Erroneous.js.map