Maternity leave is a thing. In EU, it's even protected by the legislation to offer a minimum of 14 weeks, and that employers must not dismiss a woman simply because she's pregnant.
IMO, it's especially wrong when the company that does this is a trillion dollar company.