'use client' import { Plus, CreditCard, Wallet } from 'lucide-react' interface QuickActionsProps { onAddDebt: () => void onAddCard: () => void onAddPayment: () => void } interface ActionButton { label: string icon: React.ElementType onClick: () => void color: string } export function QuickActions({ onAddDebt, onAddCard, onAddPayment, }: QuickActionsProps) { const actions: ActionButton[] = [ { label: 'Agregar Deuda', icon: Plus, onClick: onAddDebt, color: 'bg-emerald-500 hover:bg-emerald-600', }, { label: 'Nueva Tarjeta', icon: CreditCard, onClick: onAddCard, color: 'bg-blue-500 hover:bg-blue-600', }, { label: 'Registrar Pago', icon: Wallet, onClick: onAddPayment, color: 'bg-violet-500 hover:bg-violet-600', }, ] return (
{actions.map((action) => { const Icon = action.icon return ( ) })}
) }