import type { ReactNode } from 'react';

export enum QueryMessageType {
  Info = 'info',
  Success = 'success',
  Warning = 'warning',
  Error = 'error',
}

export enum QueryMessageCode {
  SessionExpired = 'SESSION_EXPIRED',
  InitializationRequired = 'INITIALIZATION_REQUIRED',
  InitializationSuccessful = 'INITIALIZATION_SUCCESSFUL',
}

export const CODE_TO_MESSAGE_MAP: Record<QueryMessageCode, ReactNode> = {
  [QueryMessageCode.SessionExpired]: 'Your session has expired. Please log in again.',
  [QueryMessageCode.InitializationRequired]: 'The application requires initialization. Please follow the setup instructions.',
  [QueryMessageCode.InitializationSuccessful]: 'Initialization successful. Please log in.',
} as const;
