My Mother was diagnosed with Liver Cancer 2 weeks before she died. It was hard but you had time to deal with it,
I sat at her side when she took her last breaths, somehow that made it a lot easier to deal with.
When my Brother died who was 19, that was a lot harder to take, it was sudden and totally unexpected, no time to prepare whatsoever.
Just be there for your mum.
Dave