It’s good to take a refresher course in empathy, from time to time. I may need it more often than most.
When someone appears to be having a moment, start by asking:
Do you want to be helped, heard, or hugged?
Follow their decision and go on from there.
For the source of the quote, and for a deeper discussion, see When Someone You Love Is Upset, Ask This One Question.