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 • 734 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShowController = void 0;
const useShowController_1 = require("./useShowController.cjs");
/**
* Render prop version of the useShowController hook
*
* @see useShowController
* @example
*
* const ShowView = () => <div>...</div>
* const MyShow = () => (
* <ShowController>
* {controllerProps => <ShowView {...controllerProps} {...props} />}
* </ShowController>
* );
*/
const ShowController = ({ children, ...props }) => {
const controllerProps = (0, useShowController_1.useShowController)(props);
return children(controllerProps);
};
exports.ShowController = ShowController;
//# sourceMappingURL=ShowController.js.map