import { ReactNode } from 'react'; import PropTypes from 'prop-types'; import { Record } from '../../features/core'; /** * Simple Layout for a Show view, showing fields in one column. * * Receives the current `record` from the parent `` component, * and passes it to its children. Children should be Field-like components. * * @example * // in src/posts.js * import * as React from "react"; * import { Show, SimpleShowLayout, TextField } from '../../app'; * * export const PostShow = (props) => ( * * * * * * ); * * // in src/App.js * import * as React from "react"; * import { Admin, Resource } from '../../app'; * * import { PostShow } from './posts'; * * const App = () => ( * * * * ); * export default App; */ declare const SimpleShowLayout: { ({ basePath, className, children, record, resource, version, ...rest }: SimpleShowLayoutProps): JSX.Element; propTypes: { basePath: PropTypes.Requireable; className: PropTypes.Requireable; children: PropTypes.Requireable; record: PropTypes.Requireable; resource: PropTypes.Requireable; version: PropTypes.Requireable; }; }; export interface SimpleShowLayoutProps { basePath?: string; className?: string; children: ReactNode; record?: Record; resource?: string; version?: number; } export default SimpleShowLayout;