Hi Karen,
This is such a thoughtful thing to do. It's difficult but I usually write something like: “I’m so sorry for your loss. [Dog’s Name] was such a special part of your life, and I hope you find comfort in all the wonderful memories you shared together. They’ll always be in your heart.”