Refactor Search component to use Dialog for improved user experience; integrate Pagination component for better navigation of search results

This commit is contained in:
ecwu
2024-12-21 22:27:07 +08:00
parent de4aca9498
commit c6fbe5c031
3 changed files with 82 additions and 78 deletions

View File

@@ -42,6 +42,7 @@ import WhisperButton from "@/components/WhisperButton";
import AddToolMsg from "./AddToolMsg";
import { Textarea } from "@/components/ui/textarea";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { ChatInput } from "@/components/ui/chat/chat-input";
import {
ChatBubble,
@@ -508,6 +509,7 @@ export default function ChatBOX(props: {
setSelectedChatIndex={props.setSelectedChatIndex}
db={props.db}
chatStore={chatStore}
show={showSearch}
setShow={setShowSearch}
/>
)}