import { useState } from "react" const useChatHistory = () => { type ChatMessages = { name: string messages: {} timestamp: number } const [chathistory, setChatHistory] = useState() } export default useChatHistory