import { AnimatePresence, motion } from "framer-motion"; import { useTranslation } from "react-i18next"; import { AiOutlineLoading3Quarters } from "react-icons/ai"; import { ChatInput, KnowledgeToFeed } from "./components"; import { useActionBar } from "./hooks/useActionBar"; type ActionBarProps = { setShouldDisplayUploadCard: (shouldDisplay: boolean) => void; shouldDisplayUploadCard: boolean; }; export const ActionsBar = ({ setShouldDisplayUploadCard, shouldDisplayUploadCard, }: ActionBarProps): JSX.Element => { const { hasPendingRequests, setHasPendingRequests } = useActionBar(); const { t } = useTranslation(["chat"]); return ( <> {hasPendingRequests && (