"use client"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import Link from "next/link"; interface QuickAction { label: string; href: string; icon: React.ReactNode; color: string; description: string; } const quickActions: QuickAction[] = [ { label: "Nueva Reserva", href: "/bookings", icon: ( ), color: "bg-blue-500 hover:bg-blue-600", description: "Crear una nueva reserva de cancha", }, { label: "Abrir Caja", href: "/pos", icon: ( ), color: "bg-green-500 hover:bg-green-600", description: "Iniciar turno de caja registradora", }, { label: "Nueva Venta", href: "/pos", icon: ( ), color: "bg-purple-500 hover:bg-purple-600", description: "Registrar venta en el punto de venta", }, { label: "Registrar Cliente", href: "/clients", icon: ( ), color: "bg-orange-500 hover:bg-orange-600", description: "Agregar un nuevo cliente al sistema", }, ]; export function QuickActions() { return ( Acciones Rapidas {quickActions.map((action) => ( {action.icon} {action.label} {action.description} ))} ); }
{action.label}
{action.description}