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

export const actionSetAvatar = (id) => async (dispatch, getState) => {
    return await dispatch(actionPromise("setAvatar", ava(getState()?.auth?.payload?.sub?.id, id)));
};