It looks like it just needs the tie-rod replaced and some adjustments.
It seems that insurance companies just automatically "total" all motorcycles, probably because of the dangers of a cracked frame. A motorcycle frame should be magnufluxed for cracks before being put back in service, just like an aircraft's airframe must be checked.