As someone who has had anxiety/depression related mental health issues. The best setup would be to have someone at the athletic department level a student athlete can go to in a situation like this. That person can help them get access to resources and be a liaison with the coaching staff/program. It’s not reasonable that you’re going to have a meeting with a professor, coach, boss, et al in the middle of a mental health crisis/episode. But you should communicate in some way, particularly if there is a reasonably designed mechanism to do so. However, that doesn’t mean the student athlete automatically gets back on the team, that should be up to the coaching staff (while getting to keep their scholarship for the designated period).