so my personal thoughts on death, to me people live on forever in you and your memories they wont die/disappear unless you let them. live on for them, be strong for them. there is nothing more you can do but be there for them before they pass. it may be hard to not be sad but they wouldnt want you being sad for them all the time. i wouldnt want people to be sad for me because it would destroy their normal routines and stuff and they wouldnt be able to do anything. thats on me and i wouldnt want that, i would everyone to be happy and to live their lives. take on what they have taught you with your time together. pass on that knowledge to others and let them know who taught you that and cherish it.
Be happy for the time you had together and what you have learned from it.