mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-19 00:22:14 +03:00
072d97adb1
* 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
17 lines
376 B
TypeScript
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 />;
|
|
};
|