I don't think it's in either country's interest to have a war and doubt they will .
If China chose to try and take Taiwan by force would US fight them directly ?? Likely not but might depend on who is POTUS and conditions at the time .
US , under Biden anyway , has shown the blueprint in the support of Ukraine - strong sanctions and good weapons but no direct involvement .
Xi can get energy from Russia now and you can bet there will be more gas pipelines constructed . But yes , other raw materials ...but the big problem would be if US stopped all trade with China as I believe likely ...that would really hurt China particularly if other countries followed their lead .
US right now should be setting up industries or sourcing from other reliable suppliers for strategic imports so that they aren't dependant on China for anything and so should we !