In my experience with TJs that are hit in the front, you want to look at the front axle housing, transfer case, and tranny. Driveshafts too. The trailing arms on the front axle don't "give", and all the shock from a front impact usually bends the front axle housing and damages the driveline behind it. We have done several at the body shop I work at, and every one needed axle housing replaced and usually transfer case. Look for cracks in the transfer case housing and tranny from the impact. The tabs on the axle for the arms will be toasted usually along with the brackets to the frame where the arms attach. You may also have a bent frame, so you will def. want to have a shop with a frame machine take a look at it if you choose to rebuild.
This is why I chose to rebuild a yj or a cj. The leaf springs give and you sometimes get lucky on saving the axle housing, but the transfer case usually gets toasted The frame doesn't sustain as much damage from the leafs either, the rigid links from axle to frame on a TJ does do some damage. Alot of work involved on getting things just right on a TJ when rebuilding from frontal impact. Not saying it can't be done, but usually it isn't done cheap, that is why they total out so fast.