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

export const pageContext = createPageContext();
export const searchContext = createSearchContext();

export const contextState: OriginalListParams<GetNoticeListParams> = {
  type: '',
  wllbCode: '',
  startTime: '',
  endTime: '',
  partType: '半成品',
  materialName: '',
  companyNumber: '',
  noticeCode: '',
  noticeId: '',
  wbs: '',
  entryNumber: '',
  productionCode: '',
  moveType: '',
  sourceType: '',
};
export const context = createTableSearchContext(contextState);
