diff --git a/components/ChatView/MessageView.tsx b/components/ChatView/MessageView.tsx index d0cda29..e53583e 100644 --- a/components/ChatView/MessageView.tsx +++ b/components/ChatView/MessageView.tsx @@ -1,4 +1,5 @@ import { Menu, MenuItem } from "@mui/material"; +import dayjs from "dayjs"; import { ReactElement, useState } from "react"; import { toast } from "react-hot-toast"; import ReactMarkdown from "react-markdown"; @@ -65,32 +66,35 @@ const MessageView = (props: Props) => { )} - - - - ); - }, - code({ children }) { - return `{children}`; - }, - }} - > - {message.content} - +
+ + + + ); + }, + code({ children }) { + return `{children}`; + }, + }} + > + {message.content} + + {dayjs(message.createdAt).format("lll")} +