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.loadingProjects')}

{t('projects.fetchingProjects')}

{t('projects.loadingProjects')}

{loadingProgress && loadingProgress.total > 0 ? (

{loadingProgress.current}/{loadingProgress.total} {t('projects.projects')}

{loadingProgress.currentProject && (

{loadingProgress.currentProject.split('-').slice(-2).join('/')}

)}
) : (

{t('projects.fetchingProjects')}

)}
); } if (projectsCount === 0) { return (

{t('projects.noProjects')}

{t('projects.runClaudeCli')}

); } if (filteredProjectsCount === 0) { return (

{t('projects.noMatchingProjects')}

{t('projects.tryDifferentSearch')}

); } return null; }