I'd like to know how more socially aware people would react to something like this, and what you think is going on in her head.

My opinion:

If a girl tells you about her problems, odds are you're considered friendzoned. However, what's the best way to react to prevent yourself from being turned into the guy she talks to about other guys? I've read about people simply ignoring these girls because they're "not worth your time" but I think surely there must be alternate options.

So how would you personally respond and what do you think of this situation?

Also I apologize if I should have posted this in askseddit, I don't think this is quite a beginner/specific question. I'm looking for more objective answers.

EDIT: To clarify, I'm not asking about what to do when girls talk about other guys. I'm asking about how to act in situations where she talks about personal things that won't make me her shrink or goto feels guy.