import { HistoryQuery } from '@empathyco/x-types' ; import { localStorageService } from '../../../../utils/storage' ; import { HistoryQueriesXStoreModule } from '../types' ; /**
 * Default implementation for the
 *  HistoryQueriesActions . loadHistoryQueriesFromBrowserStorage action.
 *
 *  param context - The  https of the actions,
 * provided by Vuex.
 *  public export const loadHistoryQueriesFromBrowserStorage = ( { commit , getters } ) => { const historyQueries = localStorageService . getItem < HistoryQuery [ ] > ( getters . storageKey ) ?? [ ] ; commit ( 'setHistoryQueries' , historyQueries ) ; } ;