If a girl starts venting to you, what should I do?

If a girl starts venting/crying to me.

What should I do?

Obviously I comfort her and make her feel better

but do I offer advice? or just say Oh okay I understand, you're totally right and things like that?

I'm wouldn't say leave me alone because she's obviously hurting and came to vent to you for a reason but would girls know anything better to do?
Updates
+1 y
The main reason for me posting is I want to know if I should give her advice.
If a girl starts venting to you, what should I do?
Post Opinion