Sharing Custom Components between channels

What should I do to make sure that a custom component I created works correctly in more that one Eximee channel? I can see that each channel has a different CSS style sheet.

There is a sourceApplication variable, which we can use in two ways:

  • we can implement a custom component for every channel directly and by visibility condition, we can define where should the component display,
  • we can pass sourceApplication or baseHref as an input to the custom component and in the script part, define a logic, which would be responsible for differences between channels.