How to not feel depressed if this doesn’t work out for me?

There is a girl at my work who I’m planning to tell that I like her. We talk all the time at work and she’s even flirty with me. I kind of get mixed signals with her so I can’t gauge if she likes me for sure or not. I wasn’t planning to tell her for a little while but she told me today she’s been talking to a guy who she might end up dating. She said she doesn’t know but that they’re just taking rn. It hurt ngl. I like her a lot and we get along well it seems like. She makes me laugh and I make her laugh.

I’m planning for the worst though. I’m already depressed today because of what she told me and I have a feeling it’s going to be a no. If she does end up saying no I don’t want to get all depressed about it like I have in the past with other girls. How can I just brush this off like nothing?
How to not feel depressed if this doesn’t work out for me?
Post Opinion