import {
  createPageContext,
  createSearchContext,
  createTableSearchContext,
} from '@hooks';
import {GetTraceBackListParams, OriginalListParams} from '@models';

export const pageContext = createPageContext();
export const searchContext = createSearchContext();
export const contextState: OriginalListParams<GetTraceBackListParams> = {
  deliveryOrder: '',
  startTime: '',
  endTime: '',
  deliveryType: '',
  deliveryCode: '',
  subsidiaryName: '',
  deliveryCompany: '',
  deliveryDepartment: '',
  customerName: '',
  commercialOpportunityCode: '',
  powerStationName: '',
  materialCode: '',
  materialName: '',
  wbs: '',
  province: '',
  city: '',
  address: '',
  commercialOpportunityName: '',
};
export const context = createTableSearchContext(contextState);
