Maternity leave

Br
Ladies when did you go on maternity leave? Did you work up until it was time? Or did you go before the baby came? Honestly I can't wait until I can take maternity leave but my goal is to work until the baby comes if I can.