same happened to my friends on one couple of years ago, he claimed on insurance, ended up with a brand new much more expensive (that’s Wheelies for you) Ragley
He gave me the Inbred, I replaced the bars (carbon, cracked) and seatpost (carbon, no signs of damage), rear wheel (front was okay), rear mech (bent) and swopped the front mech and shifter (cosmetically damaged only) for a single ring, seat (very badly scuffed), stem (again scuffed but was too long anyway), serviced the forks (made an odd clunky noise) straightened the drop out and was away.
I’m still riding it off road 2 years later, with longer travel forks on, frame is sound, I’m still alive
Worth noting though this is a bombproof steel frame not (quite cheap grade) alloy like the Core