Re-use the same data in two different components

I have two components, that are basically h6 elements

  1. TeamTitle
  2. TeamTitleMobile

They are placed in different hierarchies, but they should always have the same content. Can I somehow define a data map that I can use to lookup the value to use?

titleName=“My awesome name”

And then reference that from my components as the value: ${titleName}