import { post, del } from '../api'; function initStashesActions(_store, _router) { async function stashActor(context, { actorId, stashId }) { await post(`/stashes/${stashId}/actors`, { actorId }); } async function unstashActor(context, { actorId, stashId }) { await del(`/stashes/${stashId}/actors/${actorId}`); } return { stashActor, unstashActor, }; } export default initStashesActions;