Surgery & depression

I am super depressed because I will need to go through surgery
I already had other health issues earlier this year, then we had covid and now I need to stay in bed for one more month.
I really feel I can’t take it anymore… It feels like I m going to miss out all the cool times.
And I feel like i am alone in this difficult time… Everyone will go on summer holidays, go for swims in the lake and i will to stay home alone 🙁
I know that life is supposed to be 50% of discomfort but it feels more like 90%…
How am I suppose to deal with those tough times ?