import { makeLocalStorageAdapter } from '@/main/factories/cache' ; import { AccountModel } from '@/domain/models' ; export const setCurrentAccountAdapter = ( account ) : void => { makeLocalStorageAdapter ( ) . set ( 'account' , account ) ; } ; export const getCurrentAccountAdapter = ( ) : AccountModel => { return makeLocalStorageAdapter ( ) . get ( 'account' ) ; } ;