import React from 'react'; import { BarChart2, AlertTriangle, Sparkles } from "lucide-react"; import Button from "@/components/common/button"; import { Card } from '@/components/common/cardWrapper'; import { CardHeader } from '@/components/common/cardHeader'; // --- MAIN COMMAND CENTER PORTAL --- export default function CommandCenterPortal() { return (
{/* --- HEADER SECTION --- */}
APPLE ONE — HQ TOWER IOT COMMAND CENTER

IoT command center

Every gateway, controller and sensor across the portfolio on one live board — scoped to Apple One.

{/* --- HEADER BUTTONS --- */}
{/* --- STAT CARDS (WITH PROGRESS LINES) --- */}
{/* Card 1: SITES ONLINE */}
SITES ONLINE
2 / 2

all streaming

{/* Card 2: DEVICES */}
DEVICES
93

5 gateways

{/* Card 3: LIVE LOAD */}
LIVE LOAD
0.46 MW

portfolio now

{/* Card 4: OPEN ALARMS */}
OPEN ALARMS
3

needs attention

{/* --- LOWER SECTION --- */}
{/* Left Column (2 Cards) */}
{/* Site Cards Container */}
{/* Site 1 */}

Apple One — HQ Tower

2 GW
38 devices 200 kW • 2
{/* Site 2 */}

Apple One — Annexe

3 GW
55 devices 263 kW • 1
{/* Protocol Mix Card */}
BACnet
46%
Modbus
31%
MQTT / LoRa
18%
NB-IoT
5%
{/* Right Column (Live Alarm Feed) */}

Live alarm feed

streaming

CH-02 • Condenser approach high — 4.2 K above design

08:41 • open

AHU-07 • Filter ΔP beyond limit — replacement due

08:12 • open

CTL-14 • Controller offline — no heartbeat for 30 min

07:56 • open

SNS-208 • CO₂ trending up in open office L3 — 1,080 ppm

07:30 • acknowledged

); }