refactor: update Settings and Navbar components for improved state management and UI integration

This commit is contained in:
ecwu
2025-01-03 01:17:54 +08:00
parent 6fe1012270
commit 30583a421d
4 changed files with 112 additions and 103 deletions

View File

@@ -429,18 +429,6 @@ export default function ChatBOX() {
return (
<>
<div className="flex flex-col p-2 gap-2 w-full">
<div className="flex items-center gap-2 justify-between">
{true && <Settings setShow={setShowSettings} />}
<Button
variant="outline"
size="icon"
onClick={() => setShowSearch(true)}
>
<SearchIcon />
</Button>
</div>
{showSearch && <Search show={showSearch} setShow={setShowSearch} />}
{!chatStore.apiKey && (
<Alert>
<KeyIcon className="h-4 w-4" />