Also, not to argue against "depression" or meds or anything, but... sometimes, especially for people in the first decade of their working career, we might be trying to convince ourselves we "should" be enjoying our career circumstances even if we just don't. Those shoulds can certainly exacerbate depression. I'm just saying that your underperformance might also be an indication that you don't like your job, which is totally ok.
Finally, one of the simplest harmless things you can do to start, that you might be able to motivate yourself for, is drink a lot more water, and take a B vitamin every day.
But yeah, main thrust - take the meds, trusting that you may find it easier to motivate yourself to take other healthy steps in the future.