denwa-react-shared
Version:
20 lines (19 loc) • 598 B
TypeScript
import { PaginationProps, TableProps } from 'antd';
import { IPaginate } from '../../types';
export interface BaseTableProps extends TableProps {
viewText: string;
actionsText: string;
editText: string;
deleteText: string;
serverPagination?: IPaginate;
isCanRead: boolean;
isCanUpdate: boolean;
isCanDelete: boolean;
isHiddenUpdate?: boolean;
isFixedActions?: boolean;
onView: (id: string) => void;
onDropdownClick: (id: string) => void;
onEdit: () => void;
onDelete?: () => void;
onShowSizeChange: PaginationProps['onShowSizeChange'];
}