My friend was laid off from our company, but I wasn’t. How should I console her?

You can empathize with your friend without demonizing your own position or potentially patronizing her about how everything will be OK.