Help please

I quit smoking cigarettes and vaping cold turkey because I found out I was pregnant.... but my husband and friends all do it and it’s so tempting and no I haven’t even touched a vape or cigarette since finding out (3 months pregnant rn so I’m doing good) and whenever they are about to smoke or start vaping I leave the room but man I really want a cigarette.. or to at least vape but I know it’ll most likely hurt my baby so I won’t but how do I cope with this I’m struggling 😖