That's so hard.
But you are on the right path by trying to keep her focused on her goals and working hard for those. Her goal can be joining the tops girls. HOWEVER, Tops is not the thing that decides who is successful in gymnastics. I would say, and I am making a guess based on my experience with gymnastics over the last 7+ years, that more of the successful gymnast at elite/Level10/College levels did not do Tops. Also, many, many Tops girls do not go on to be high level gymnast. (If you are the parent of a Tops girl, I am not trying to speak against you or what your dd is doing. It does have its benefits, its just not the end all, be all some gyms make it out to be...)
So talk to your dd about how success as a gymnast comes in many different forms, and that working hard and focusing on her goals is the best way to be one of those successful gymnast. Talk to her about what her long term goals are for herself, and help her set short term goals to reach those.
I don't know how old or what level your dd is, but anything is possible. Let her know that.