UNPKG

ra-core

Version:

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

29 lines 742 B
import * as React from 'react'; import { ReactNode } from 'react'; import { ShowControllerResult } from './useShowController'; /** * Create a Show Context. * * @example * * const MyShow = (props) => { * const controllerProps = useShowController(props); * return ( * <ShowContextProvider value={controllerProps}> * <MyShowView> * </ShowContextProvider> * ); * }; * * const MyShowView = () => { * const record = useRecordContext(); * } * * @see ShowContext * @see RecordContext */ export declare const ShowContextProvider: ({ children, value, }: { children: ReactNode; value: ShowControllerResult; }) => React.JSX.Element; //# sourceMappingURL=ShowContextProvider.d.ts.map