UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

14 lines 577 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useFormGroupContext = void 0; var react_1 = require("react"); var FormGroupContext_1 = require("./FormGroupContext"); /** * Retrieve the name of the form group the consumer belongs to. May be undefined if the consumer is not inside a form group. */ var useFormGroupContext = function () { var context = (0, react_1.useContext)(FormGroupContext_1.FormGroupContext); return context; }; exports.useFormGroupContext = useFormGroupContext; //# sourceMappingURL=useFormGroupContext.js.map