import { Folder, Search } from 'lucide-react'; import type { TFunction } from 'i18next'; import type { LoadingProgress } from '../../types/app'; type SidebarProjectsStateProps = { isLoading: boolean; loadingProgress: LoadingProgress | null; projectsCount: number; filteredProjectsCount: number; t: TFunction; }; export default function SidebarProjectsState({ isLoading, loadingProgress, projectsCount, filteredProjectsCount, t, }: SidebarProjectsStateProps) { if (isLoading) { return (
{t('projects.fetchingProjects')}
{loadingProgress.current}/{loadingProgress.total} {t('projects.projects')}
{loadingProgress.currentProject && ({loadingProgress.currentProject.split('-').slice(-2).join('/')}
)}{t('projects.fetchingProjects')}
)}{t('projects.runClaudeCli')}
{t('projects.tryDifferentSearch')}