Just wanted to second that I'm sorry to see this. My last car got hit by someone busy texting and driving. I was at a stop light, then wammo. My last car was at the end of its useful life, and I did have their insurance repair it, then gave it to a family member (then bought the Clarity).
Some other threads in this forum talk about getting depreciated value from the insurance company, and making sure the battery and frame are OK. i.e. may require specialized equipment. I think folks suggested using repair places that also repair Tesla (or have electric car experience). We wish you all the best in the process, and of course glad to hear you're all OK.