/**
 * List of portal container ids of the app.
 * Take a look at `_document.tsx`
 */
export enum PORTALS {
    DRAG_PREVIEW = 'portal-drag-preview',
}

// Default page size for the API
export const DEFAULT_PAGE_SIZE = 20;

// Default silent login retry interval in milliseconds
export const SILENT_LOGIN_RETRY_INTERVAL = 30 * 1000; // 30 seconds

// Session storage keys
export const APP_STORAGE_PREFIX = "messages_";
export const SESSION_EXPIRED_KEY = APP_STORAGE_PREFIX + "session_expired";
export const PREFER_SEND_MODE_KEY = APP_STORAGE_PREFIX + "prefer-send-mode";
export const THEME_KEY = APP_STORAGE_PREFIX + "theme";
export const MESSAGE_IMPORT_TASK_KEY = APP_STORAGE_PREFIX + "message-import-task";
export const EXTERNAL_IMAGES_CONSENT_KEY = APP_STORAGE_PREFIX + "external-images-consent";
export const THREAD_SELECTED_FILTERS_KEY = APP_STORAGE_PREFIX + "thread-selected-filters";
export const SILENT_LOGIN_RETRY_KEY = APP_STORAGE_PREFIX + "silent-login-retry";
export const OIDC_LOGIN_ATTEMPT_KEY = APP_STORAGE_PREFIX + "oidc-login-attempt";
export const OIDC_LOGIN_FAILED_KEY = APP_STORAGE_PREFIX + "oidc-login-failed";
export const EXPANDED_FOLDERS_KEY = APP_STORAGE_PREFIX + "expanded-folders";


// Enums
export enum PreferSendMode {
    SEND_AND_ARCHIVE = "send-and-archive",
    SEND = "send",
}
