import { TablePagination } from './TablePagination';

export class TableFilter implements TableFilter {
  pagination: TablePagination;
  dateFrom?: Date;
  dateTo?: Date;
  search?: string | (string | null)[];

  constructor(args: TableFilter) {
    this.pagination = new TablePagination(args?.pagination);
    this.search = args.search;
    this.dateTo = args.dateTo;
    this.dateFrom = args.dateFrom;
  }
}
