Add lucide-react package and remove unused icons
This commit is contained in:
@@ -47,6 +47,10 @@ type State = {
|
||||
setIsEmbedding: (isEmbedding: boolean) => void
|
||||
speechToTextLanguage: string
|
||||
setSpeechToTextLanguage: (language: string) => void
|
||||
webSearch: boolean;
|
||||
setWebSearch: (webSearch: boolean) => void;
|
||||
isSearchingInternet: boolean;
|
||||
setIsSearchingInternet: (isSearchingInternet: boolean) => void;
|
||||
}
|
||||
|
||||
export const useStoreMessageOption = create<State>((set) => ({
|
||||
@@ -72,5 +76,9 @@ export const useStoreMessageOption = create<State>((set) => ({
|
||||
chatMode: "normal",
|
||||
setChatMode: (chatMode) => set({ chatMode }),
|
||||
isEmbedding: false,
|
||||
setIsEmbedding: (isEmbedding) => set({ isEmbedding })
|
||||
setIsEmbedding: (isEmbedding) => set({ isEmbedding }),
|
||||
webSearch: false,
|
||||
setWebSearch: (webSearch) => set({ webSearch }),
|
||||
isSearchingInternet: false,
|
||||
setIsSearchingInternet: (isSearchingInternet) => set({ isSearchingInternet }),
|
||||
}))
|
||||
|
||||
15
src/store/web.tsx
Normal file
15
src/store/web.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { create } from "zustand"
|
||||
|
||||
type State = {
|
||||
state: "searching" | "clicked" | "embeddings" | "done"
|
||||
text: string
|
||||
setText: (text: string) => void
|
||||
setState: (state: "searching" | "clicked" | "embeddings" | "done") => void
|
||||
}
|
||||
|
||||
export const useWebSearch = create<State>((set) => ({
|
||||
state: "searching",
|
||||
text: "Searching Google",
|
||||
setText: (text) => set({ text }),
|
||||
setState: (state) => set({ state })
|
||||
}))
|
||||
Reference in New Issue
Block a user