Thats one of the reasons but not the only. Part of it is the electric grid, part of it is because even once the last ICE car has been produced, youre still looking at probably 20 years before they are all off of the road. Part of it too is because the enthusiasts arent going to buy electric cars.Here is telling interview by CEO of Renault:
China is limiting export of raw materials
China has a monopoly on a lot of raw materials, and they are limiting exports.
This is why all those bans on EVs will be postponed, as the EU will be able to go all EVs only if they surrender their market.
Short of some major battery breakthroughs that would make China just another supplier, expect all those ICE bans to be postponed.
Whats going to happen most likely is that they are going to cut gas production so that its so expensive that its not cost-effective anymore and so many people are going to buy EVs that the manufacturers will decide its no longer worth it to produce them from a business standpoint, even if the governement doesnt follow through and outright ban them.