AFAIK, the KJW G23 is compatible with parts from the TM G17. however, I don't know from experience, but The TM G17 is based off its previous designs of the glock 26 and 26A, and the KJW G23 is based off of the G26 and G26A. The TM G17 is basically the G26A re-packaged.
And the TM inner barrel for all TM GBBs are the same. My glock inner barrel will fit my 1911 and vice versa. And i'm pretty sure the the hop unit is the same across all models (KJW/TM).
KJW G23
TM G26
TM G17