As you know, depression and anxiety can make it difficult to focus on work – especially at a time when the world seems upside down. If you feel like your work will be significantly impacted, I suggest working together with your doctor and your employer to explore reasonable accommodations under the Americans with Disabilities Act.
If you go this route, I recommend reflecting on your experience first. I know sifting through and understanding emotions can be difficult. But if you notice something specific– taking public transit, sitting too close to co-workers, etc. – triggers negative thoughts or feelings, focus your efforts on finding an accommodation that addresses that stress, such as telework or a staggered schedule at the office.
Thank you for sharing your struggle – I hope this helps. Have a happy and healthy return to work!