import { actionPromise } from "./actionPromise"; import { snippetById } from "./requests"; export const actionSnippetById = (id) => async (dispatch) => { return await dispatch(actionPromise("findSnippetById", snippetById(id))); };