There are actually two ways to write thank you. No, seriously. I promise.
Thank you, when used as a phrase, is two words. However, when used as a noun, it’s hyphenated.
She gave away bookmarks to her readers as a small thank-you for their loyalty.
“Thank you so much for reading!”