Add @mantine/hooks dependency and update PlaygroundChat component

This commit is contained in:
n4ze3m
2024-02-25 21:17:27 +05:30
parent 86d4d53693
commit 094615498c
13 changed files with 99 additions and 40 deletions

View File

@@ -1,15 +0,0 @@
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 })
}))