They crash very well.
If the forks are straight and the frame fine, then keep it and just replace all you need to.
I bought a crashed bike from an owner who had the exact same bike hit a lamp post.
I sent the forks off to be checked and serviced. Replaced the radiator, front mud guard, brake lines, right faring, head light, screen, passenger right foot peg and mirrors.
Sold it to a friend. Still going strong 3 years later. Zero issues.
My buddy taking it home...