'use client' import { FolderOpen, Trash2 } from 'lucide-react' import { MoveToNotebookPicker } from '@/components/move-to-notebook-picker' import { useLanguage } from '@/lib/i18n' import { useNotebooks } from '@/context/notebooks-context' import { cn } from '@/lib/utils' export function InboxBulkBar({ totalCount, selectedCount, busy, onSelectAll, onDeselectAll, onMove, onTrash, }: { totalCount: number selectedCount: number busy?: boolean onSelectAll: () => void onDeselectAll: () => void onMove: (notebookId: string) => void onTrash: () => void }) { const { t } = useLanguage() const { notebooks } = useNotebooks() const allSelected = totalCount > 0 && selectedCount === totalCount const hasSelection = selectedCount > 0 return (
{selectedCount === 1 ? t('notes.selectedCountOne') : t('notes.selectedCount', { count: selectedCount })}
{hasSelection ? ( { if (notebookId) onMove(notebookId) }} > ) : ( )}
) }