+
+ Actual Costs - {formatDateDisplay(selectedDate)}
+
+
+
+
+
+
+
+
+
+ {loading && (
+
+ Loading...
+
+ )}
+ {error && (
+
+
+ {error}
+
+
+ )}
+ {metricsSummary && !loading && (
+ <>
+
+ Import Cost:
+
+ €{metricsSummary.total_import_cost.toFixed(2)} (
+ {metricsSummary.total_import_kwh.toFixed(2)} kWh)
+
+
+
+ Export Revenue:
+
+ €{metricsSummary.total_export_cost.toFixed(2)} (
+ {metricsSummary.total_export_kwh.toFixed(2)} kWh)
+
+
+
+
+ {netActualCost !== null && netActualCost <= 0
+ ? "Net Revenue:"
+ : "Net Cost:"}
+
+
+ {netActualCost !== null
+ ? `€${Math.abs(netActualCost).toFixed(2)}`
+ : "N/A"}
+
+
+ >
+ )}
+
+