Solar combined with “4 hours of battery backup” is 16+h of output.
Suppose you want 1GW of solar 24/7. Well 4h is roughly 1/2 the output of an array over a day. So to get 1GW during the day you need a 2GW solar array. Now your 4h batter is 4h x 2GW = 8GWh. Which means your 4h battery can provide 1GW for 8 hours a day combined with your 2GW array providing 1GW for another 8 hours, and less than 1GW for even longer.
Of course the grid doesn’t actually want X GW 24/7, demand is higher in the day and lower at night. On top of this 4h is sized based on maximum output, you need extra solar to cover cloudy days, but extra arrays also come with more grid storage. Thus at scale 4h battery backed solar arrays can roughly meet all of the grids energy needs.
Another factor is panels can be pointed slightly east or west if you want power earlier or later in the day. The tradeoff is less total output over the day, but with expensive storage and cheap PV it can be more profitable that way.