Gripe water for newborns?

Va

My baby is 12 days old, I'm breastfeeding and she started having troubles pooping. I can tell she has pain in her belly that keeps her awake most of the time, she makes noises, moving a lot and trying to push, it takes at least 30 minutes for her to poop. Would you use gripe water even if it says do not use for babies up to 1 month. If I can't use it is there anything else I can to help her ??