start of chatHistory
This commit is contained in:
parent
dc44bd22d7
commit
dbf30fa8a7
3 changed files with 38 additions and 27 deletions
14
app/hooks/useChatHistory.tsx
Normal file
14
app/hooks/useChatHistory.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { useState } from "react"
|
||||
|
||||
const useChatHistory = () => {
|
||||
type ChatMessages = {
|
||||
name: string
|
||||
messages: {}
|
||||
timestamp: number
|
||||
}
|
||||
|
||||
|
||||
const [chathistory, setChatHistory] = useState<ChatMessages[]>()
|
||||
}
|
||||
|
||||
export default useChatHistory
|
Loading…
Add table
Add a link
Reference in a new issue