'use client' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import Link from 'next/link' import { Upload, Sparkles, Plus, CheckSquare, FileText } from 'lucide-react' import type { ViewMode } from './transaction-types' interface TransactionStatusBarProps { uncategorizedCount: number invoiceMatchCount: number mode: ViewMode onModeChange: (mode: ViewMode) => void onOpenSwipeView: () => void onOpenCreateDialog: () => void isLoadingSuggestions: boolean isBatchMode: boolean onToggleBatchMode: () => void } export default function TransactionStatusBar({ uncategorizedCount, invoiceMatchCount, mode, onModeChange, onOpenSwipeView, onOpenCreateDialog, isLoadingSuggestions, isBatchMode, onToggleBatchMode, }: TransactionStatusBarProps) { return (
{/* Header with title + actions */}

Transaktioner

{uncategorizedCount > 0 && mode === 'inbox' && (

{uncategorizedCount} att bokföra {invoiceMatchCount > 0 && ( · {' '} {invoiceMatchCount} fakturamatchningar )}

)} {mode === 'history' && (

Alla dina transaktioner

)}
{mode === 'inbox' && uncategorizedCount > 0 && ( <> )}
{/* Mode toggle - segmented control style */}
) }