Sharing about mental health in AA

This is a dumb question, but I'm a very early newcomer to AA so this is all new to me.

Basically, I went to an in-person meeting today and someone said talking about depression and anxiety in shares or speaker leads is out of line because it's an "outside matter/outside issue." Is this true at all? I'm very self conscious now because I just recently shared for the first time in a meeting. I talked all about my social anxiety and how it keeps leading me to craving a drink to escape. Are we not supposed to talk about mental health conditions in AA? I'm gonna delete this in a bit cause I sound ignorant, but I just want to ask here cause I don't want to speak out of line in meetings as a clueless newcomer. lol

TIA!!