China isn't gonna invade, at least not militarily. They don't care about the plight of the Afghan people, terrorism in the west, making sure little girls can go to school or any other feelgood measures we used to justify the last 2 decades there.
They are just gonna give the taliban a bunch of money to let them exploit the resources they don't have the infrastructure to do themselves and let the taliban do what it wants with the rest of it, unlike us who wanted to do the same but at least needed to act like we were trying to do some good while doing so. Whole war was a grift for the military industrial complex.