const TenantStorageKey = 'active-tenant';
export const storeInitialTenant = () => {
    const urlParams = new URLSearchParams(window.location.search);
    const urlTenantId = urlParams.get('tenantId');
    if (urlTenantId) {
        storeTenant(urlTenantId);
    }
};
export const storeTenant = (tenantId) => {
    window.sessionStorage.setItem(TenantStorageKey, tenantId);
};
export const getStoredTenant = () => {
    return window.sessionStorage.getItem(TenantStorageKey);
};
export const clearStoredTenant = () => {
    window.sessionStorage.removeItem(TenantStorageKey);
};
//# sourceMappingURL=UnitySessionStorage.js.map