mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-22 02:41:51 +03:00
9b163e5b65
* refactor: update uploadPage structure * feat: show upload component from chatbar * refactor: move <Feed/> from upload page to chat page
20 lines
860 B
TypeScript
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>
|
|
);
|
|
};
|