Add toggle switch component, service configs, admin profile links
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module FormElements
|
||||
class ToggleComponent < ViewComponent::Base
|
||||
def initialize(enabled:)
|
||||
@enabled = !!enabled
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user