interstellar_ai/app/hooks/useChatHistory.tsx

14 lines
268 B
TypeScript
Raw Normal View History

2024-10-08 12:56:28 +02:00
import { useState } from "react"
const useChatHistory = () => {
type ChatMessages = {
name: string
messages: {}
timestamp: number
}
const [chathistory, setChatHistory] = useState<ChatMessages[]>()
}
export default useChatHistory