exactly. not to mention, it's literally common knowledge that depression makes an individual less interested in things they previously enjoyed. it's literally among the first couple of questions that you get asked during a depression screening; so saying "get a hobby" is genuinely just fucking stupid.
for most suicidal/depressed people, myself included, nothing is enjoyable. i had plenty of hobbies, but i've stopped caring about all of them because that's what depression does to a person.
i'm sorry you're having a hard time. it's unfortunate that we have to deal with this half-assed, nonsensical "advice", but i hope you have/are able to find people to talk to who can provide meaningful feedback.