import { RelatedTagsRequest } from '@empathyco/x-adapter' ; import { RelatedTag } from '@empathyco/x-types' ; import { createFetchAndSaveActions } from '../../../../store/utils/fetch-and-save-action.utils' ; import { RelatedTagsActionContext } from '../types' ; const { fetchAndSave , cancelPrevious } = createFetchAndSaveActions < RelatedTagsActionContext , RelatedTagsRequest | null , RelatedTag [ ] > ( { fetch ( { dispatch } , request ) { return dispatch ( 'fetchRelatedTags' , request ) ; } , onSuccess ( { commit } , relatedTags ) { commit ( 'setRelatedTags' , relatedTags ) ; } } ) ; /**
 * Default implementation for  RelatedTagsActions . fetchAndSaveRelatedTags action.
 *
 *  public export const fetchAndSaveRelatedTags = fetchAndSave ; /**
 * Default implementation for  RelatedTagsActions . fetchAndSaveRelatedTags action.
 *
 *  public export const cancelFetchAndSaveRelatedTags = cancelPrevious ;