diff --git a/src/renderer/src/pages/home/Tabs/SessionsTab.tsx b/src/renderer/src/pages/home/Tabs/SessionsTab.tsx index b1adc7c04f..b31750a819 100644 --- a/src/renderer/src/pages/home/Tabs/SessionsTab.tsx +++ b/src/renderer/src/pages/home/Tabs/SessionsTab.tsx @@ -1,6 +1,8 @@ +import { Spinner } from '@heroui/react' import { useRuntime } from '@renderer/hooks/useRuntime' -import { AnimatePresence,motion } from 'framer-motion' +import { AnimatePresence, motion } from 'framer-motion' import { FC, memo } from 'react' +import { useTranslation } from 'react-i18next' import Sessions from './components/Sessions' @@ -9,18 +11,26 @@ interface SessionsTabProps {} const SessionsTab: FC = () => { const { chat } = useRuntime() const { activeAgentId } = chat + const { t } = useTranslation() return ( {!activeAgentId ? ( - No active agent. + key="loading" + initial={{ opacity: 0 }} + animate={{ opacity: 1 }} + exit={{ opacity: 0 }} + transition={{ duration: 0.3 }} + className="flex h-full flex-col items-center justify-center gap-3"> + + + {t('common.loading')}... + ) : (