import "./table.scss"; import cx from "classnames"; import { ReactElement, ReactNode } from "react"; import { MinRecordItem, TableColumn } from "./table-helpers"; import { TableRowsProps } from "./table-rows"; export type RowActionsProps = { record: T; onSuccess?: () => void; stacked?: boolean; }; export type TableProps = { children?: ReactNode; className?: cx.Argument; columns: TableColumn[]; /** Displayed when we have 0 records. */ emptyMessage?: string | ReactElement; hidePagination?: boolean; isLoading?: boolean; pageSize?: number; records: T[]; showTableHead?: boolean; stacked?: boolean; } & Pick, "handleRowClick" | "canClickRow" | "RowActions" | "rowActions" | "getRowClassName">; export type TableBaseProps = Omit, "records" | "columns">; export declare const Table: ({ className, columns, records, isLoading, emptyMessage: message, showTableHead, stacked, handleRowClick, canClickRow, RowActions, getRowClassName, hidePagination, pageSize, children, }: TableProps) => JSX.Element; //# sourceMappingURL=table.d.ts.map