'use client'; import { Clock, Trash2, RotateCcw } from 'lucide-react'; import Image from 'next/image'; import type { HistoryItem } from '../lib/types'; import { CONTENT_TYPE_LABELS } from '../lib/types'; interface QRHistoryProps { history: HistoryItem[]; onSelect: (item: HistoryItem) => void; onClear: () => void; } export default function QRHistory({ history, onSelect, onClear }: QRHistoryProps) { if (history.length === 0) { return (

Aucun historique

Vos QR Codes récents apparaîtront ici

); } return (

{history.length} QR Code{history.length > 1 ? 's' : ''} récent{history.length > 1 ? 's' : ''}

{history.map((item) => ( ))}
); }