How do you know when to give up - on a sick kitty

I have Mrs Kitty since 2001. My wife passed away 2015 and it’s time soon to make that decision. It’s hard to think about putting her down because she is like a connection to my wife.