// Define initial state
import {StateInterface} from '../reducers';

export const initialState: StateInterface = {
  activeConversation: {},
  app: {
    backendAPIRoot: "",
    demoMode: true, // selon l'environnement, si activé, ajoute des faux messages et fausses sources au lancement de l'app.
    displayConversationListPanelLarge: true,
    displayFeedBackPanel: false,
    displaySourcesPanelLarge: true,
    displayErrorResponse: false,
    displayTour: false,
    displayWarningAIMaturing: false,
    feedBackInput: "",
    activeTheme: "light",
    themesList: ["light", "dark", "funky"],
    averageResponseTime: 200, // Default average backend response time in milliseconds
    filters: [
      {
        name: "Incident reports",
        enabled: true,
        kind: "local",
      },
      {
        name: "General reports",
        enabled: false,
        kind: "local",
      },
      {
        name: "Press articles",
        enabled: false,
        kind: "local",
      },
      {
        name: "Safety files",
        enabled: false,
        kind: "local",
      },
      {
        name: "Patent files",
        enabled: false,
        kind: "local",
      },
      {
        name: "Academic papers",
        enabled: false,
        kind: "local",
      },
      {
        name: "Google search",
        enabled: false,
        kind: "outside",
      },
      {
        name: "Google patents",
        enabled: false,
        kind: "outside",
      },
      {
        name: "Google scholar",
        enabled: true,
        kind: "outside",
      },
    ],
    input: "",
    inputMode: "auto",
    lang: "fr_FR",
    langsList: ["fr_FR", "en_US"],
    loading: false,
    notifications: [],
    ollamaAvailable: false, // Whether the Ollama backend is available
    searchInput: "",
    version: "1.1.0"
  },
  conversationsList: [],
  lastSeenMessage: {},
  user: {
    isAuthenticated: false,
    id: "",
  },

};
