You repair it.
Because the money you spend is not really for the REPAIR of the camera. It's for your subsequent joy in then being able to USE the camera after it's been repaired.
One of the most unfortunate aspects of the eBay mentality these days is that all things in life end up being assigned a monatary value, which is then assumed to equate to their life value. The true value of your repaired camera is in its ability to bring you happiness via its use. Not in its monetary value sitting unused on a shelf.
Most of the time functional and broken cameras look identical. But they don't act identical.