import * as React from 'react';
import {SortDirection} from "../../../typings/common";

export const passedWithListPropsTypes: {
    pageSize: number;
    activePage: number;
    onChangePage: Function;
    onChangePageSize: Function;

    fieldsParams: object;
    onUpdateFieldParams: Function;
    onResetFieldParams: Function;

    filterText: string;
    onChangeFilterText: Function;

    sorting: {
        field: string;
        direction: SortDirection;
    },
    onChangeSorting: Function;
};

export const withListProps: (Component: React.ComponentType) => React.ComponentType;
