import { create } from "zustand";

interface conversationState {
  assistantName: string;
  conversationId: string;
  receivingMsg: boolean;
  setConversationId: (newId: string) => void;
  setAssistantName: (newName: string) => void;
  setReceivingMsg: (newState: boolean) => void;
}

export const conversationStore = create<conversationState>()((set) => ({
  assistantName: "",
  conversationId: "",
  receivingMsg: false,
  setConversationId: (newId) => set({ conversationId: newId }),
  setAssistantName: (newName) => set({ assistantName: newName }),
  setReceivingMsg: (newState) => set({ receivingMsg: newState }),
}));
