Depression will take you to nothing, even you will loose what can right now.
Just understand that, to get something you have to be patient, Keep moving, see how people are working, what mistakes are you doing, make more mistakes to learn more, Find and improvement things.
Every successful person was at your stage but they didn’t give up. You have 2 choice continue struggling/learning/working hard (get successful over team) OR just give up and be in your existing comfort level without facing any challenges (shouldn’t see success ahead). Choice is yours.