import { ActionsUnion , createAction } from '../../utils' ; import { LocalStorageActionTypes } from './actionTypes' ; export const setLocalStorageItem = ( key , value ) => createAction ( LocalStorageActionTypes . SET_ITEM , { key , value } ) ; export const removeLocalStorageItem = ( key ) => createAction ( LocalStorageActionTypes . REMOVE_ITEM , { key } ) ; const actions = { setLocalStorageItem , removeLocalStorageItem , } ; export type LocalStorageActions = ActionsUnion < typeof actions > ;