'use client'; import { X, ArrowDownCircle, ArrowUpCircle, Trash2 } from 'lucide-react'; import Scanner from '@/components/Scanner'; import NewItemDialog from '@/components/NewItemDialog'; import { clsx, type ClassValue } from 'clsx'; import { twMerge } from 'tailwind-merge'; function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } interface ScannerSectionProps { mode: string; onModeChange: (mode: string) => void; showScanner: boolean; onShowScanner: (show: boolean) => void; onScanSuccess: (result: any) => void; onOCRMatch: (result: any) => void; onAddItemClick: () => void; } export default function ScannerSection({ mode, onModeChange, showScanner, onShowScanner, onScanSuccess, onOCRMatch, onAddItemClick, }: ScannerSectionProps) { return (