2023-09-05 11:49:29 +03:00
|
|
|
import { ChatInput, Feed } from "./components";
|
|
|
|
import { useActionBar } from "./hooks/useActionBar";
|
2023-08-11 11:06:20 +03:00
|
|
|
|
|
|
|
export const ActionsBar = (): JSX.Element => {
|
2023-09-05 11:49:29 +03:00
|
|
|
const { isUploading, setIsUploading } = useActionBar();
|
|
|
|
|
2023-08-11 11:06:20 +03:00
|
|
|
return (
|
2023-09-05 11:49:29 +03:00
|
|
|
<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>
|
2023-08-11 11:06:20 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|