import { actionPromise } from "./actionPromise";
import { reg } from "./requests";

export const actionRegister = (login, password) => async (dispatch) => {
    return await dispatch(actionPromise("register", reg(login, password)));
  };