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

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