import * as types from './index';

export const registerUserAction = (user) => {
  return {
    type: types.REGISTER_USER,
    user
  }
};

export const loginUserAction = (user) => {
  return {
    type: types.LOGIN_USER,
    user
  }
};

export const logoutAction = (user) => {
  return {
    type: types.LOGOUT_USER,
    user
  }
};

export const forgotPasswordAction = (email) => {
  return {
    type: types.FORGOT_PASSWORD,
    email
  }
};