import React, { useState, useEffect } from 'react';
import {
LayoutDashboard,
MapPin,
Wallet,
BarChart3,
Settings,
Truck,
CreditCard,
Users,
AlertCircle,
TrendingUp,
Clock,
CheckCircle2
} from 'lucide-react';
// Mock Data para el Dashboard
const INITIAL_STATS = [
{ label: 'GMV Mensual', value: '$12,450', change: '+12.5%', icon: TrendingUp, color: 'text-emerald-500' },
{ label: 'Órdenes Activas', value: '42', change: '+5', icon: Truck, color: 'text-blue-500' },
{ label: 'Wallets Emitidas', value: '1,280', change: '+18%', icon: Wallet, color: 'text-purple-500' },
{ label: 'Tiempo Promedio', value: '24 min', change: '-2 min', icon: Clock, color: 'text-orange-500' },
];
const RECENT_ORDERS = [
{ id: 'ORD-9921', client: 'Maestro a la Carta', status: 'En Camino', amount: '$45.00', time: '12:45 PM' },
{ id: 'ORD-9920', client: 'Humo Negro Store', status: 'Completado', amount: '$120.00', time: '12:30 PM' },
{ id: 'ORD-9919', client: 'Catering Premium', status: 'Preparación', amount: '$85.50', time: '12:15 PM' },
];
const App = () => {
const [activeTab, setActiveTab] = useState('dashboard');
const [currentTime, setCurrentTime] = useState(new Date().toLocaleTimeString());
useEffect(() => {
const timer = setInterval(() => setCurrentTime(new Date().toLocaleTimeString()), 1000);
return () => clearInterval(timer);
}, []);
return (
{/* Sidebar de Navegación */}
{/* Main Content */}
{/* Header Superior */}
{/* Workspace */}
{/* Stats Grid */}
{INITIAL_STATS.map((stat, i) => (
{stat.label}
{stat.value}
))}
{/* Monitor de Logística (Simulado) */}
Monitoreo en Tiempo Real
{/* Marcadores de mapa simulados */}
[MAPA_INTERACTIVO_REPLICANDO_VENEZUELA]
{/* Panel de Fintech / Wallet */}
Wallet Engine
Previsualización de Pass
Beneficio VIP
15% OFF EL SEÑOR DE LAS BRASAS
Últimas Redenciones
{RECENT_ORDERS.map((order, i) => (
{order.client}
{order.id}
{order.amount}
{order.status}
))}
);
};
const NavItem = ({ icon, label, active, onClick }) => (
);
export default App;