# frozen_string_literal: true module Ariadne module Form # :nodoc: module FormReference class Component < Ariadne::Form::BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input end def builder_or_view @input.nested? ? builder : @view_context end end end end end