diff --git a/src/message.tsx b/src/message.tsx index 2e578aa..da66afc 100644 --- a/src/message.tsx +++ b/src/message.tsx @@ -8,17 +8,11 @@ interface Props { export default function Message(props: Props) { const { chatStore, messageIndex, setChatStore } = props; const chat = chatStore.history[messageIndex]; - const pClassName = - chat.role === "assistant" - ? "message-content p-2 rounded bg-white my-2 text-left dark:bg-gray-700 dark:text-white" - : "message-content p-2 rounded bg-green-400 my-2 text-right"; - const iconClassName = - chat.role === "user" - ? "absolute bottom-0 left-0" - : "absolute bottom-0 right-0"; const DeleteIcon = () => ( ); return ( -
{chat.content}
-{chat.content}
+