I first implemented it using a block. I use Twig templates to pass the configuration variables in PHP to the twig file, and in the twig file, I have a
The problem with this approach is that user needs to add the block on the page, and there is no UI facing element on that block. I also find it very messy.
I am new to Drupal development. Any help with this is really appreciated.