quivr/frontend/app/chat/[chatId]/hooks/useSelectedChatPage.ts
Mamadou DICKO ef78dec810
feat: improve knowledge feed process ux (#1274)
* style(deleteBrainModal): reduce buttons space

* refactor: add KnowledgeToFeedInput

* feat: update translations

* feat: update knowledge feed component

* style: reduce knowledge to upload displayer size

* feat: move KnowledgeToFeedInput to @lib

* refactor: rename useSelectedChatPage to useChatNotificationsSync

* feat: change chatPage bg to gray when feed card is opened

* style: change feed process submit button bg to purple
2023-09-27 15:39:04 +02:00

12 lines
318 B
TypeScript

import { useState } from "react";
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const useSelectedChatPage = () => {
const [shouldDisplayUploadCard, setShouldDisplayUploadCard] = useState(false);
return {
shouldDisplayUploadCard,
setShouldDisplayUploadCard,
};
};