import React, { useState, useEffect } from 'react'; import { db } from '../../firebase/config'; import { ref, onValue } from 'firebase/database'; import { TrendingUp, Users, ShoppingBag, AlertCircle } from 'lucide-react'; export default function DashboardOverview() { const [stats, setStats] = useState({ ventasHoy: 0, mesasActivas: 0, stockBajo: 0 }); useEffect(() => { // Aquí iría la escucha de Firebase para stats en tiempo real setStats({ ventasHoy: 12500, mesasActivas: 4, stockBajo: 2 }); }, []); const cards = [ { title: 'Ventas de Hoy', value: `$${stats.ventasHoy.toLocaleString()}`, icon: , bg: 'rgba(32, 201, 151, 0.1)' }, { title: 'Mesas Activas', value: stats.mesasActivas, icon: , bg: 'rgba(50, 173, 230, 0.1)' }, { title: 'Órdenes', value: '45', icon: , bg: 'rgba(255, 90, 95, 0.1)' }, { title: 'Stock Bajo', value: stats.stockBajo, icon: , bg: 'rgba(245, 166, 35, 0.1)' } ]; return (

Resumen General

{cards.map((card, i) => (
{card.icon}

{card.title}

{card.value}

))}

Actividad Reciente

Módulo de notificaciones en tiempo real desde Cocina/Meseros...

); }