import { ReactElement } from 'react'; import { RaRecord, ShowBaseProps } from 'ra-core'; import { ShowViewProps } from './ShowView'; /** * Page component for the Show view * * The `` component handles the headless logic of the Show page: * - it calls useShowController to fetch the record from the data provider, * - it creates a ShowContext and a RecordContext, * - it computes the default page title * - it renders the page layout with the correct title and actions * * `` is not responsible for rendering the actual page - * that's the job of its child component (usually ``). * * @example * * // in src/posts.js * import * as React from "react"; * import { Show, SimpleShowLayout, TextField } from 'react-admin'; * * export const PostShow = () => ( * * * * * * ); * * // in src/App.js * import * as React from "react"; * import { Admin, Resource } from 'react-admin'; * * import { PostShow } from './posts'; * * const App = () => ( * * * * ); * export default App; * * @param {ShowProps} inProps * @param {ReactElement|false} inProps.actions An element to display above the page content, or false to disable actions. * @param {string} inProps.className A className to apply to the page content. * @param {ElementType} inProps.component The component to use as root component (div by default). * @param {boolean} inProps.emptyWhileLoading Do not display the page content while loading the initial data. * @param {string} inProps.id The id of the resource to display (grabbed from the route params if not defined). * @param {Object} inProps.queryClient Options to pass to the react-query useQuery hook. * @param {string} inProps.resource The resource to fetch from the data provider (grabbed from the ResourceContext if not defined). * @param {Object} inProps.sx Custom style object. * @param {ElementType|string} inProps.title The title of the page. Defaults to `#{resource} #${id}`. * * @see ShowView for the actual rendering */ export declare const Show: (inProps: ShowProps) => ReactElement; export interface ShowProps extends ShowBaseProps, Omit { } //# sourceMappingURL=Show.d.ts.map