feat: implement new ui
This commit is contained in:
parent
4d5af8c62a
commit
6293470332
28 changed files with 1417 additions and 584 deletions
11
hooks/use-chat-store.ts
Normal file
11
hooks/use-chat-store.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { create } from 'zustand'
|
||||
|
||||
interface UseChatStore {
|
||||
defaultMessage: string
|
||||
setDefaultMessage: (message: string) => void
|
||||
}
|
||||
|
||||
export const useChatStore = create<UseChatStore>()(set => ({
|
||||
defaultMessage: '',
|
||||
setDefaultMessage: message => set({ defaultMessage: message })
|
||||
}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue