mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-19 17:01:41 +03:00
d955e31f50
added explore button and removed unused feature openai key # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
33 lines
1019 B
TypeScript
33 lines
1019 B
TypeScript
"use client";
|
|
|
|
import { Sidebar } from "@/lib/components/Sidebar/Sidebar";
|
|
import { useOnboarding } from "@/lib/hooks/useOnboarding";
|
|
|
|
import { ChatHistory } from "./components/ChatHistory";
|
|
import { NewChatButton } from "./components/NewChatButton";
|
|
import { WelcomeChat } from "./components/WelcomeChat";
|
|
import { useChatNotificationsSync } from "./hooks/useChatNotificationsSync";
|
|
import { useChatsList } from "./hooks/useChatsList";
|
|
|
|
export const ChatsList = (): JSX.Element => {
|
|
useChatsList();
|
|
useChatNotificationsSync();
|
|
const { shouldDisplayWelcomeChat } = useOnboarding();
|
|
|
|
return (
|
|
<Sidebar showButtons={["myBrains","marketplace", "upgradeToPlus", "user"]}>
|
|
<div className="flex flex-col flex-1 h-full" data-testid="chats-list">
|
|
<div className="pt-2">
|
|
<NewChatButton />
|
|
</div>
|
|
{shouldDisplayWelcomeChat && (
|
|
<div className="pt-2">
|
|
<WelcomeChat />
|
|
</div>
|
|
)}
|
|
<ChatHistory />
|
|
</div>
|
|
</Sidebar>
|
|
);
|
|
};
|