Investing advice – Inheritance via stock

Posting here hoping this community has well-rounded advice

I recently inherited ~$40k of stock in a small cap company, that is highly volatile, and is significantly down since last year.

I’m down 22% in this position since inheriting and finding myself curious if this is a long-term hold or if should wait for the next near-term peak and sell to get into a broader index? Even if the price doesn’t return to the original price when I inherited. Also considering the economy and a worst case scenario of this company going bankrupt.

All thoughts welcomed and appreciated!