Teething baby not eating

barely has wet diapers she’s been pooping diarrhea.. consistency has changed but she will not eat.. she eats maybe first thing in the morning any other time I make a bottle she eats maybe half of it and is fine and normally takes a 7-8 oz bottle.. I brought pedialyte she drunk some and refused the rest.. i’m worried