If you could post a pic that would help as we can't see the damage so we can't assess to see if it's worth fixing or not.
Depending on the car, if the panels are too hard and too expensive to find and fix fix (worth more then 75% of the market value of the car) they would class it as a repairable write off... But if the car has been in a terrible damage that is a statuary write off...
But if you want opinions from us, we need more information then what you have provided us as what you have described means anything...