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

export const actionSearch = (string) => async (dispatch) => {
    return await dispatch(actionPromise('searchSnippet', search(string)))
}

