It depends on the insurance company, but many will total at 80% of it's estimated value. Basically, for them to fix it means that they are putting all that money out to possibly find out there is unforeseen damage with the frame and when they get it all done, it does not track true and pulls severely to the left ... now what ???
Or, they can hand you a check for its value, sell it as a total for say $5,000, and wash their hands of it. This way they are only out the difference between the value and what they gave you and what they sold the wreck bike for. Often the later is a better option for all.