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

export interface PriceUpdateComponentState {
  showFilter: boolean;
  fetching: boolean;
  filter: UiFilter | undefined;
  pendingFilter: UiFilter | undefined;
  defaultFilter: UiFilter | undefined;
  items: ProductListItemDTO[];
  selectedItemUids: string[];
  loading: boolean;
}

export const INITIAL_PRICE_UPDATE_COMPONENT_STATE: PriceUpdateComponentState = {
  showFilter: false,
  fetching: false,
  filter: undefined,
  pendingFilter: undefined,
  defaultFilter: undefined,
  items: [],
  selectedItemUids: [],
  loading: false,
};
