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

export const actionSnippetFindByOwner = (id) => async (dispatch) => {
    return await dispatch(actionPromise("findSnippet", snippetByOwner(id)));
  };