import { environment } from "../../environments/environment"; import { createSendRecovery } from "./sendRecovery"; const tabStorage = (): Storage | undefined => { try { return window.sessionStorage; } catch { return undefined; } }; /** This portal's record of unconfirmed sends, in this tab; sign-out clears it through the same store. */ export const portalSendRecovery = () => createSendRecovery(tabStorage(), environment.localStoragePrefix);