Regardless of the damage in Ukraine, rebuilding the damage in the Gaza strip will take decades not years. Rebuilding a single city alone will take years to decades, recovering the economy et al will take a lot longer. Outside help can accelerate this but rebuilding & fixing after a war is generally not fast.