quivr/frontend/app/chat/[chatId]/components/ActionsBar/ActionsBar.tsx
Mamadou DICKO 9b163e5b65
feat: add <Feed /> component in chat page (#1103)
* refactor: update uploadPage structure

* feat: show upload component from chatbar

* refactor: move <Feed/> from upload page to chat page
2023-09-05 10:49:29 +02:00

20 lines
860 B
TypeScript

import { ChatInput, Feed } from "./components";
import { useActionBar } from "./hooks/useActionBar";
export const ActionsBar = (): JSX.Element => {
const { isUploading, setIsUploading } = useActionBar();
return (
<div className={isUploading ? "h-full" : ""}>
{isUploading && (
<div className="shadow-md dark:shadow-primary/25 hover:shadow-xl transition-shadow rounded-xl bg-white dark:bg-black border border-black/10 dark:border-white/25 p-6">
<Feed onClose={() => setIsUploading(false)} />
</div>
)}
<div className="flex mt-1 flex-col w-full shadow-md dark:shadow-primary/25 hover:shadow-xl transition-shadow rounded-xl bg-white dark:bg-black border border-black/10 dark:border-white/25 p-6">
<ChatInput isUploading={isUploading} setIsUploading={setIsUploading} />
</div>
</div>
);
};