text: import { GET_BASE } from "./action-types";
  import {
    GET_BASE_SAGA,
    ADD_STUDENT,
    ADD_STUDENT_SAGA,
    IS_FETCHING,
    IS_FETCHING_SAGA,
    EDIT_STUDENT,
    EDIT_STUDENT_SAGA,
    ADD_GROUP_SAGA,
    ADD_GROUP,
  } from "./action-types";
  
  export const editStudentSaga = (payload) => {
    return {
      type: EDIT_STUDENT_SAGA,
      student: payload,
    };
  };
  export const editStudent = (payload) => {
    return {
      type: EDIT_STUDENT,
      student: payload,
    };
  };
  
  export const getBase = (payload) => {
    return {
      type: GET_BASE,
      data: payload,
    };
  };
  
  export const getBaseSaga = () => {
    return {
      type: GET_BASE_SAGA,
    };
  };
  
  export const addStudent = (payload) => {
    return {
      type: ADD_STUDENT,
      student: payload,
    };
  };
  export const addGroup = (payload) => {
    return {
      type: ADD_GROUP,
      group: payload,
    };
  };
  
  export const addStudentSaga = (payload) => {
    return {
      type: ADD_STUDENT_SAGA,
      name: payload,
    };
  };
  
  export const addGroupSaga = (payload) => {
    return {
      type: ADD_GROUP_SAGA,
      group: payload,
    };
  };
  export const isFetching = (isFetching) => {
    return {
      type: IS_FETCHING,
      isFetching: isFetching,
    };
  };
  
  export const isFetchingSaga = (isFetching) => {
    return {
      type: IS_FETCHING_SAGA,
      isFetching: isFetching,
    };
  };
  