import webapi from "./webapi";
export function showStateAction(reduce, gf, data) {
  return async (dispatch, getState) => {
    reduce("showState", data);
  };
}
export function getInvoiceData(reduce, gf, data) {
  return async (dispatch, getState) => {
    const res = await webapi.invoiceList(data);
    reduce("invoiceSelect", res.items);
  };
}
export function getIncomeData(reduce, gf, data) {
  return async (dispatch, getState) => {
    const res = await webapi.IncomeList(data);
    reduce("incomeData", res.items);
  };
}
