import { ReactElement } from 'react';
import PropTypes from 'prop-types';
import { ButtonProps } from './Button';
/**
* Opens the List view of a given resource
*
* @example // basic usage
* import { ListButton } from '../../app';
*
* const CommentListButton = () => (
*
* );
*
* @example // linking back to the list from the Edit view
* import { TopToolbar, ListButton, ShowButton, Edit } from '../../app';
*
* const PostEditActions = ({ basePath, record, resource }) => (
*
*
*
*
* );
*
* export const PostEdit = (props) => (
* } {...props}>
* ...
*
* );
*/
declare const ListButton: {
(props: ListButtonProps): JSX.Element;
propTypes: {
basePath: PropTypes.Requireable;
icon: PropTypes.Requireable;
label: PropTypes.Requireable;
};
};
interface Props {
basePath?: string;
icon?: ReactElement;
label?: string;
}
export declare type ListButtonProps = Props & ButtonProps;
export default ListButton;