Jada Pinkett Smith revealed she's previously contemplated suicide and encouraged troubled people to get help.

Smith posted a picture of celebrity chef Anthony Bourdain and fashion designer Kate Spade on her Instagram page and opened up about her mental struggles in the caption.

One thing I’ve learned in my life over the years is that mental health is something we should practice daily, not just when issues arise. We should take care of our mind and spirit in the same way we do our body. With the suicides of Kate and Anthony it brought up feelings of when I was in such despair and had considered the same demise…often. In the years I spent towards my healing, many moons ago, I realized the mind and heart can be extremely delicate without the foundation of a formidable spirit. What I eat, what I watch on TV, what music I listen to, how I care for my body, my spiritual practice, what people I surround myself with, the amount of stress I allow and so on… either contribute to or deteriorate my mental health. Mental health is a daily practice for me. It’s a practice of deep self-love. May Kate and Anthony Rest In Peace. Many may not understand… but I do, and this morning I have the deepest gratitude that I pulled through. . Love.

A post shared by Jada Pinkett Smith (@jadapinkettsmith) on

“One thing I’ve learned in my life over the years is that mental health is something we should practice daily, not just when issues arise,” she wrote. “We should take care of our mind and spirit in the same way we do our body. With the suicides of Kate and Anthony it brought up feelings of when I was in such despair and had considered the same demise…often.”

The Girls Trip star continued and gave examples of what she does to administer self-care.

“In the years I spent towards my healing, many moons ago, I realized the mind and heart can be extremely delicate without the foundation of a formidable spirit,” she continued. “What I eat, what I watch on TV, what music I listen to, how I care for my body, my spiritual practice, what people I surround myself with, the amount of stress I allow and so on… either contribute to or deteriorate my mental health. Mental health is a daily practice for me. It’s a practice of deep self-love.”

She ended the message by wishing peace for Bourdain and Spade and expressed empathy for their suffering.

“May Kate and Anthony Rest In Peace. Many may not understand… but I do, and this morning I have the deepest gratitude that I pulled through. Love,” she concluded.

Spade was found dead in her apartment on June 5, and her death was ruled a suicide by hanging two days later. Bourdain also hung himself, and his body was discovered on June 8 in France.