+
+
+ {power[0].map((_, i) => (
+
+ {i + 1}
+
+ ))}
+
+ {power.map((row, r) => {
+ const day = String(date.getDate()).padStart(2, '0');
+ const month = String(date.getMonth() + 1).padStart(2, '0');
+ const year = date.getFullYear();
+ const dateStr = `${day}.${month}.${year}`;
+ date.setDate(date.getDate() + 1);
+ return (
+
+
+ {dateStr}
+
+ {row.map((value, c) => (
+
+ {value}
+
+ ))}
+
+ );
+ })}
+
+