import { Alert, cn, Spinner } from '@heroui/react' import { useRuntime } from '@renderer/hooks/useRuntime' import { useSettings } from '@renderer/hooks/useSettings' import { AnimatePresence, motion } from 'framer-motion' import { FC, memo } from 'react' import { useTranslation } from 'react-i18next' import Sessions from './components/Sessions' interface SessionsTabProps {} const SessionsTab: FC = () => { const { chat } = useRuntime() const { activeAgentId } = chat const { t } = useTranslation() const { apiServer } = useSettings() const { topicPosition, navbarPosition } = useSettings() if (!apiServer.enabled) { return (
) } return ( {!activeAgentId ? ( {t('common.loading')}... ) : ( )} ) } export default memo(SessionsTab)