text: //Tra ra kieu type de reducers phan tich
  import * as types from '../constants/actionTypes';
  
  export const listAll = () =>{
      return {
          type:types.LIST_ALL
      }
  };
  
  export const saveTask = (task) =>{
      return{
          type:types.SAVE_TASK,
          task
      }
  };
  export const toggleForm= () =>{
      return{
          type:types.TOGGLE_FORM
      }
  };
  export const openForm= () =>{
      return{
          type:types.OPEN_FORM
      }
  };
  export const closeForm= () =>{
      return{
          type:types.CLOSE_FORM
      }
  };
  export const updateStatus= (id) =>{
      return{
          type:types.UPDATE_STATUS_TASK,
          id
      }
  };
  export const editTask= (task) =>{
      return{
          type:types.EDIT_TASK,
          task
      }
  };
  export const deleteTask= (id) =>{
      return{
          type:types.DELETE_TASK,
          id
      }
  };
  
  export const filterTask = (filter) =>{
      return{
          type:types.FILTER_TABLE,
          filter
      }
  }
  export const searchTask = (keyword) =>{
      return{
          type:types.SEARCH,
          keyword
      }
  }
  export const sortTask = (sort) =>{
      return {
          type:types.SORT,
          sort //sortBy & sortValue
      }
  }