To dream that you are thanking someone shows the respect you have towards that particular person. If somebody else have thanked you, it means that you are feeling appreciated by those around you.
Dream dictionary: thank dream meanings
When you are giving presents to someone, then it shows that you appreciate that particular person and thank him enough for being there for you. Ig you received the gift in your dream, then it means that you feel appreciated by others.
If you dream of saying Thank You to someone, then such dream shows the love and affection you have towards that particular person. On the other hand, the dream may reflect your acceptation for who you are.