edit add, delete button

This commit is contained in:
yenminh269 2025-10-18 20:42:09 -05:00
commit 4989d30ec3
4 changed files with 13 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import React, { useState } from "react";
import ChatHeader from "src/components/ui/chat/chat-header";
import ChatWindow from "src/components/ui/chat/chat-window";
import MessageInput from "src/components/ui/chat/message-input";
import '../../index.css'
export default function ChatLayout() {
const [messages, setMessages] = useState([
{

View file

@ -31,8 +31,15 @@ export default function ChatHeader({ title = "AI Assistant" }) {
Ask anything AI is listening
</p>
</div>
<ActionButton children='New Chat' type="add" onClick={handleNewChat}></ActionButton>
<ActionButton children='Delete Chat'type="delete" onClick={handleDeleteChat}></ActionButton>
</div>
<div className="flex items-center gap-2">
<ActionButton type="add" onClick={handleNewChat}>
New Chat
</ActionButton>
<ActionButton type="delete" onClick={handleDeleteChat}>
Delete Chat
</ActionButton>
</div>
</header>
);

View file

@ -1,6 +1,5 @@
import React, { useRef, useEffect } from "react";
function MessageBubble({ message }) {
const isUser = message.role === "user";
return (

View file

@ -1,5 +1,6 @@
@import "tailwindcss/preflight";
@import "tailwindcss/utilities";
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--color-primary: 15 40 98;