module SponsoredBenefits
  module ApplicationHelper
    def generate_breadcrumb_links(proposal, organization)
      if proposal.persisted?
        links = [sponsored_benefits.edit_organizations_plan_design_organization_plan_design_proposal_path(organization.id, proposal.id)]
        links << sponsored_benefits.new_organizations_plan_design_proposal_plan_selection_path(proposal)
      else
        links = [sponsored_benefits.new_organizations_plan_design_organization_plan_design_proposal_path(organization.id)]
      end
      unless proposal.active_benefit_group.nil?
        links << sponsored_benefits.new_organizations_plan_design_proposal_plan_review_path(proposal)
      end
      links
    end

    def eligibility_criteria(employer)
      # toDo - See why do we have this dependency in DC.
    end
  end
end
