If one is in janabat and before taking ghusl, she gets her haydh then which ghusl should she do? Same with the niyyat of janabat or?

You perform ghusl janabat for now and once your haydh finishes, perform ghusl haydh and ihtiyat niyyat for ghusl janabah