import { Package, AlertTriangle, Activity, FileText, LayoutGrid, Plus } from "lucide-react"; import Button from "@/components/common/button"; import StatCard from "@/components/common/dashStatCard"; export default function EnergyPortal() { const metersList = [ { meter: "MTR-1", name: "Electricity main 1", location: "Pump room", type: "Electricity", mf: "1", }, { meter: "MTR-2", name: "Water main 2", location: "Main LT panel", type: "Water", mf: "10", }, { meter: "MTR-3", name: "Diesel main 3", location: "DG room", type: "Diesel", mf: "100", }, { meter: "MTR-4", name: "Electricity main 4", location: "Block riser", type: "Electricity", mf: "1", }, { meter: "MTR-5", name: "Water main 5", location: "DG room", type: "Water", mf: "1", }, ]; const latestReadings = [ { meter: "MTR-1", prev: "40.00", current: "58.00", cons: "18.0", uom: "kWh", }, { meter: "MTR-2", prev: "49.00", current: "69.00", cons: "200.0", uom: "kL", }, { meter: "MTR-3", prev: "58.00", current: "80.00", cons: "2200.0", uom: "L", }, { meter: "MTR-4", prev: "67.00", current: "91.00", cons: "24.0", uom: "kWh", }, { meter: "MTR-5", prev: "76.00", current: "102.00", cons: "26.0", uom: "kL", }, ]; return (
{/* --- HEADER SECTION --- */}
Apple One — HQ Tower Operations Energy

Meters & readings

Meter master with QR identification and reading capture. Consumption is reading × multiplication factor.

{/* --- HEADER BUTTONS --- */}
{/* --- TABLES GRID (SIDE-BY-SIDE) --- */}
{/* LEFT TABLE: METER MASTER */}

Meter master

5 meters
{metersList.map((row, index) => { return ( ); })}
Meter Name Location Type MF
{row.meter} {row.name} {row.location} {row.type} {row.mf}
{/* RIGHT TABLE: LATEST READINGS */}

Latest readings

tap a meter for history
{latestReadings.map((row, index) => ( ))}
Meter Prev Current Cons. UOM
{row.meter} {row.prev} {row.current} {row.cons} {row.uom}
); }