Imodium safe?

Ugh ladies I had diarrhea this afternoon and without thinking I took an Imodium to help stop it. Now I’m freaking out because I breastfed my daughter afterwards and I’m worried it will hurt her! I wasn’t even thinking 😩