hello thank you for using this site to help you. I am not a Doctor, but have been trained in pet first aide and I can tell you that the only thing in an ant trap that is harmful is the trap itself, not the contents
The trap if pieces were swallowed have the potential to cause an obstruction in the bowel which would make her ill
you can read more on this here http://www.vetblog.net/2013/07/dog.roach.ant.trap.what.to.do.html
What I would do is stop feeding for 24 hours, tomorrow night try a bland diet of boiled chicken (no grease /fat/skin) and cooked white rice. Give only a tablespoon to begin, wait four hours and give another if she held down the first tablespoon. If she refuses the bland diet or cannot hold it down you will know it is more serious than a virus
If she continues to vomit, have a change in stool or is still lethargic through the day tomorrow, then see your vet by the evening. Through the fast she can have water
Keep an eye on her temperature rectally ,normal should be between 100.5 and 102.5 if there is fever it can mean infection. Keep an eye on her gums, if they go pale or white see your vet. I would like to send a follow up with you in a couple of days to see how things are going is that okay?