'use client'; /* ════════════════════════════ BatchBar ════════════════════════════ * Floating "N selected" action bar voor batch operaties. * Verschijnt onderaan zodra >= 1 item geselecteerd is. */ import { Trash2, Download, X } from 'lucide-react'; export interface BatchAction { key: string; label: string; icon?: React.ReactNode; variant?: 'danger' | 'default'; onClick: () => void; } interface BatchBarProps { count: number; actions: BatchAction[]; onClear: () => void; label?: string; } export default function BatchBar({ count, actions, onClear, label = 'geselecteerd' }: BatchBarProps) { if (count === 0) return null; return (
{/* Count badge */} {count} {label}
{/* Actions */}
{actions.map((action) => ( ))}
{/* Close */}
); }