import {
  ADS_CANDIDATES_FETCH,
  ADS_CANDIDATES_ERROR,
  ADS_CANDIDATES_SUCCESS,
  FILTER_CANDIDATES,
  FILTER_CANDIDATES_ERROR,
  FILTER_CANDIDATES_SUCCESS,
  } from './candidatesActionConstants';
  
  export const filterCandidates = (payload) => ({
    type: FILTER_CANDIDATES,
    payload
  });

  export const filterCandidatesError = (payload) => ({
    type: FILTER_CANDIDATES_ERROR,
    payload,
  });
  
  export const filterCandidatesSuccess = (payload) => ({
    type: FILTER_CANDIDATES_SUCCESS,
    payload,
  });

  export const fetchAdsCandidates = () => ({
    type: ADS_CANDIDATES_FETCH,
  });

  export const fetchAdsCandidatesError = (payload) => ({
    type: ADS_CANDIDATES_ERROR,
    payload,
  });
  
  export const fetchAdsCandidatesSuccess = (payload) => ({
    type: ADS_CANDIDATES_SUCCESS,
    payload,
  });
