start of chatHistory

This commit is contained in:
YasinOnm08 2024-10-08 12:56:28 +02:00
parent dc44bd22d7
commit dbf30fa8a7
3 changed files with 38 additions and 27 deletions

View 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