mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
11 lines
307 B
Ruby
11 lines
307 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MultipleCheckedSelectComponent < ViewComponent::Base
|
|
def initialize(name:, options:, selected:, filter_placeholder: "Filter options")
|
|
@name = name
|
|
@filter_placeholder = filter_placeholder
|
|
@options = options
|
|
@selected = selected.map(&:to_sym)
|
|
end
|
|
end
|