import { PaginationControls } from '@@/PaginationControls'; import { Table } from './Table'; import { SelectedRowsCount } from './SelectedRowsCount'; interface Props { totalSelected: number; pageSize: number; page: number; onPageChange(page: number): void; totalCount: number; onPageSizeChange(pageSize: number): void; } export function DatatableFooter({ totalSelected, pageSize, page, onPageChange, totalCount, onPageSizeChange, }: Props) { return ( onPageChange(page - 1)} totalCount={totalCount} onPageLimitChange={onPageSizeChange} /> ); }