quivr/frontend/app/chat/[chatId]/components/Dialog.tsx
Mamadou DICKO 072d97adb1
feat: add prompt trigger through # (#1023)
* feat: add prompt trigger to mention input

* feat: update chat shortcuts

* test: update BrainProviderMock

* feat: improve ux

* feat: update message header position

* feat: improve mention input dx

* fix(MentionInput): fix minor bugs

* feat: refactor <ShareBrain/>

* feat: add brain sharing button

* fix: make popover buttons click working

* feat: update backspace handle logic

* feat: update add new brain button ui
2023-08-29 10:50:36 +02:00

17 lines
376 B
TypeScript

import { useChatContext } from "@/lib/context";
import { ChatMessages } from "./ChatMessages";
import { ShortCuts } from "./ShortCuts";
export const ChatDialog = (): JSX.Element => {
const { history } = useChatContext();
const shouldDisplayShortcuts = history.length === 0;
if (!shouldDisplayShortcuts) {
return <ChatMessages />;
}
return <ShortCuts />;
};