Wow -I figured you all would be all anti-Israel and they had it coming.
But, honest question - why is it Israel's responsibility to supply Gaza with electricity? Gaza shares a border with Egypt. Why don't they supply them with electric? After all the money we've sent them - why haven't the built the infrastructure to supply their own electric? They could put up solar panels on all the houses because the 1 thing they've got plenty of is sunshine. It seems like the Hamas leadership wants to keep Gaza in a shit state because it makes Israel look bad when in reality the only thing Israel is guilty of is having a closed border with what it considers an enemy state. Do I get that right?
I don't know what practical issues would be involved in supplying electricity or water to Gaza from Egypt, or even whether it would be possible without the agreement of Israel, who control road traffic across that border, judging by news reports about what relief supplies are and aren't being allowed to cross into Gaza (fuel to power generators and desalination plants aren't being allowed in, for example, because of concerns Hamas will divert it for military purposes).
But I think the point is that, for whatever reason, Israeli power and water utilities have been providing a supply to customers in Gaza (who have presumably been paying for it) in addition to whatever the Gazans have been able to provide for themselves with solar panels, wells or whatever, and the Israeli government has, in response to the murders, rapes and kidnappings of October 7, unilaterally cut them off.
As to the general point, though, Hamas certainly don't seem particularly interested in the wellbeing of the unfortunate Gazans, though I don't think that Benjamin Netanyahu, who came to power precisely because of his opposition to the "two state solution," wants a stable and economically successful Palestinian enclave in Gaza or the West Bank, either. Hamas, at least according to the clip I posted above, claim that since Israel is the occupying power in Gaza (because it controls the borders and airspace) Israel is responsible for ensuring supplies for the enclave.