import { Server, Database, Cloud, Globe } from 'lucide-react'; export default function DashboardServiceCard({ order, onClick }) { // Fonction Radar : Détecte le type de service selon son nom pour afficher la bonne icône const getServiceIcon = (title) => { const t = title.toLowerCase(); if (t.includes('vps') || t.includes('serveur')) return ; if (t.includes('cloud') || t.includes('nextcloud')) return ; if (t.includes('db') || t.includes('base') || t.includes('sql')) return ; return ; // Par défaut : Web / Hestia }; // Fonction d'état : Formate le statut du service const getStatusBadge = (status) => { switch (status) { case 'active': return ACTIF; case 'pending_setup': return EN PRÉPARATION; case 'suspended': return SUSPENDU; default: return {status.toUpperCase()}; } }; return (
{getServiceIcon(order.title)}
{getStatusBadge(order.status)}

{order.title}

Facturation : {order.period}

ID Réseau: #{order.id} Gérer >
); }