When someone says thank you, do you say you’re welcome? If not, why not?

I tend to say “of course”. “You’re welcome” has recently become less in style, is some people think it has negative undertones in some situations. Like “Yeah, you should be thankful.” Context matters a lot ofc.