Question: what to do when someone is having an anxiety?
Answer: try to stay calm.
gently let them know that you think they might be having a panic attack and that you are there for them.
encourage them to breathe slowly and deeply – it can help to count out loud, or ask them to watch while you gently raise your arm up and down.