This is not enacted yet, China just stated it is a possibility,and fron an editorial ( see 2nd statement):
"In the latest move, Chinese state media this week raised the possibility of limiting the export of rare earth minerals which are key to the manufacture of high technology and are used in the production of mobile phones, memory chips and rechargeable batteries. China supplies about 80 percent of the world's rare earth minerals. Semiconductor makers in particular would be affected by a ban on such exports.
Stocks plunged after Beijing revealed the ace up its sleeve in the rapidly escalating conflict with the United States: rare earths.
An editorial in the China’s People’s Daily – the Communist Party’s official newspaper – called for Beijing to drastically reduce exports of rare earths, which are vital to key industrial sectors including defense, energy, and automobile manufacturing.