import { AnimatePresence, motion } from "framer-motion"; import { useTranslation } from "react-i18next"; import { AiOutlineLoading3Quarters } from "react-icons/ai"; import { useKnowledgeToFeedContext } from "@/lib/context/KnowledgeToFeedProvider/hooks/useKnowledgeToFeedContext"; import { ChatInput, KnowledgeToFeed } from "./components"; import { useActionBar } from "./hooks/useActionBar"; export const ActionsBar = (): JSX.Element => { const { hasPendingRequests, setHasPendingRequests } = useActionBar(); const { t } = useTranslation(["chat"]); const { shouldDisplayFeedCard } = useKnowledgeToFeedContext(); return ( <> {hasPendingRequests && (