UNPKG

ra-core

Version:

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

23 lines 607 B
import { useResourceDefinitionContext } from './useResourceDefinitionContext'; /** * Get the definition of the all resources * * @example * * const definitions = useResourceDefinitions(); * console.log(definitions.posts); * // { * // name: 'posts', * // hasList: true, * // hasEdit: true, * // hasShow: true, * // hasCreate: true, * // options: {}, * // icon: PostIcon, * // recordRepresentation: 'title', * // } */ export var useResourceDefinitions = function () { return useResourceDefinitionContext().definitions; }; //# sourceMappingURL=useResourceDefinitions.js.map