Friend

so my friend is always with her significant other. she texts them a lot even when just me and her are hanging out and it’s annoying because she doesn’t pay attention when it’s just us hanging out, she’s always texting her s.o. They broke up once and i tried to help her thru it because obviously everyone wants someone to talk to while going thru a break up. but she keeps going back to her s.o and sorta brushing her other friends off that she’s closer with and have been there for her longer. i want to be a good friend but i don’t want her to take advantage of me especially when she sorta treats us like this. what should i do?