UNPKG

ra-core

Version:

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

20 lines 800 B
import { ReactNode } from 'react'; import { RaRecord } from '../../types'; import { ShowControllerProps, ShowControllerResult } from './useShowController'; /** * Render prop version of the useShowController hook * * @see useShowController * @example * * const ShowView = () => <div>...</div> * const MyShow = () => ( * <ShowController> * {controllerProps => <ShowView {...controllerProps} {...props} />} * </ShowController> * ); */ export declare const ShowController: <RecordType extends RaRecord<import("../../types").Identifier> = any, ErrorType = Error>({ children, ...props }: { children: (params: ShowControllerResult<RecordType, ErrorType>) => ReactNode; } & ShowControllerProps<RecordType, ErrorType>) => ReactNode; //# sourceMappingURL=ShowController.d.ts.map