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

export const actionSnippetAdd = (title, description, files, idSnippet) => async (dispatch) => {
	return await dispatch(actionPromise("addSnippet", snippetAdd(title, description, files, idSnippet)));
};