Add AdminTooltipComponent

I left the stimulus controller separated as it is generic enough
This commit is contained in:
Gaetan Craig-Riou
2024-09-04 22:11:39 +10:00
parent b6695ba9a2
commit 8de7c304fe
7 changed files with 78 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
class AdminTooltipComponent < ViewComponent::Base
def initialize(text:, link_text:, placement: "top", link: "", link_class: "")
@text = text
@link_text = link_text
@placement = placement
@link = link
@link_class = link_class
end
end