The SRAM x7 is mated to a PG 1050.
You need a GX 10 speed shifter to upgrade. The GX is roughly equal to the old X9 from the groupset family series X5,X7,X9.
You can still also get an X5 10 speed derailleur.
A quick search suggests they are commonly available and in production.