text: import { UserActionTypes } from "./user.types";
  
  export const setCurrentUser = (user) => ({
    type: UserActionTypes.SET_CURRENT_USER,
    payload: user,
  });
  
  export const adminModeOn = () => ({
    type: UserActionTypes.ADMIN_MODE_ON,
  });
  
  export const adminModeOff = () => ({
    type: UserActionTypes.ADMIN_MODE_OFF,
  });
  