import { PackageDTO2 } from '@generated/swagger/wws-api';
import { UiFilter } from '@ui/filter';

export interface PackageResultComponentState {
  showFilter: boolean;
  fetching: boolean;
  filter: UiFilter | undefined;
  pendingFilter: UiFilter | undefined;
  defaultFilter: UiFilter | undefined;
  packages: PackageDTO2[];
  total: number;
}

export const INITIAL_RESULT_COMPONENT_STATE: PackageResultComponentState = {
  showFilter: false,
  fetching: false,
  filter: undefined,
  pendingFilter: undefined,
  defaultFilter: undefined,
  packages: [],
  total: 0,
};
