import { FolderPlus, MessageSquare, RefreshCw, Search, X } from 'lucide-react'; import type { TFunction } from 'i18next'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { IS_PLATFORM } from '../../constants/config'; type SidebarHeaderProps = { isPWA: boolean; isMobile: boolean; isLoading: boolean; projectsCount: number; searchFilter: string; onSearchFilterChange: (value: string) => void; onClearSearchFilter: () => void; onRefresh: () => void; isRefreshing: boolean; onCreateProject: () => void; onCollapseSidebar: () => void; t: TFunction; }; export default function SidebarHeader({ isPWA, isMobile, isLoading, projectsCount, searchFilter, onSearchFilterChange, onClearSearchFilter, onRefresh, isRefreshing, onCreateProject, onCollapseSidebar, t, }: SidebarHeaderProps) { return ( <>
{IS_PLATFORM ? (

{t('app.title')}

{t('app.subtitle')}

) : (

{t('app.title')}

{t('app.subtitle')}

)}
{IS_PLATFORM ? (

{t('app.title')}

{t('projects.title')}

) : (

{t('app.title')}

{t('projects.title')}

)}
{!isLoading && !isMobile && (
)} {projectsCount > 0 && !isLoading && (
onSearchFilterChange(event.target.value)} className="pl-9 h-9 text-sm bg-muted/50 border-0 focus:bg-background focus:ring-1 focus:ring-primary/20" /> {searchFilter && ( )}
)} ); }