You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: work_header_component.rb
    path of file: ./repos/annict/app/components/deprecated/headers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Deprecated::Headers
  class WorkHeaderComponent < Deprecated::ApplicationV6Component
    def initialize(view_context, work:, programs:)
      super view_context
      @work = work
      @programs = programs
    end

    def render
      build_html do |h|
        h.tag :div, class: "c-work-header pt-3" do
          h.tag :div, class: "container" do
            h.tag :div, class: "gx-3 row" do
              h.tag :div, class: "col-12 col-sm-auto" do
                h.tag :div, class: "c-work-header__work-picture text-center" do
                  h.tag :a, href: view_context.work_path(work_id: @work.id) do
                    h.html view_context.render(Pictures::WorkPictureComponent.new(work: @work, width: 170))
                  end

                  h.tag :div, class: "mt-2 text-center" do
                    h.html Deprecated::ButtonGroups::WorkButtonGroupComponent.new(view_context, work: @work).render
                  end
                end
              end

              h.tag :div, class: "col mt-3 mt-sm-0" do
                h.tag :div do
                  h.html Deprecated::Badges::WorkMediaBadgeComponent.new(view_context, work: @work).render
                  h.html Deprecated::Badges::WorkSeasonBadgeComponent.new(view_context, work: @work, class_name: "ms-2").render
                end

                h.tag :h1, class: "fw-bold h2 mt-1" do
                  h.tag :a, href: view_context.work_path(work_id: @work.id), class: "text-body" do
                    h.text @work.local_title
                  end
                end

                h.tag :ul, class: "list-inline" do
                  h.tag :li, class: "list-inline-item" do
                    h.tag :span, class: "small text-muted" do
             
    
    def render
      build_html do |h|
        h.tag :div, class: "c-work-header pt-3" do
          h.tag :div, class: "container" do
            h.tag :div, class: "gx-3 row" do
              h.tag :div, class: "col-12 col-sm-auto" do
                h.tag :div, class: "c-work-header__work-picture text-center" do
                  h.tag :a, href: view_context.work_path(work_id: @work.id) do
                    h.html view_context.render(Pictures::WorkPictureComponent.new(work: @work, width: 170))
                  end

                  h.tag :div, class: "mt-2 text-center" do
                    h.html Deprecated::ButtonGroups::WorkButtonGroupComponent.new(view_context, work: @work).render
                  end
                end
              end

              h.tag :div, class: "col mt-3 mt-sm-0" do
                h.tag :div do
                  h.html Deprecated::Badges::WorkMediaBadgeComponent.new(view_context, work: @work).render
                  h.html Deprecated::Badges::WorkSeasonBadgeComponent.new(view_context, work: @work, class_name: "ms-2").render
                end

                h.tag :h1, class: "fw-bold h2 mt-1" do
                  h.tag :a, href: view_context.work_path(work_id: @work.id), class: "text-body" do
                    h.text @work.local_title
                  end
                end

                h.tag :ul, class: "list-inline" do
                  h.tag :li, class: "list-inline-item" do
                    h.tag :span, class: "small text-muted" do
                      h.text t("noun.watchers_count")
                      h.text ":"
                    end

                    h.tag :span, class: "fw-bold ms-1" do
                      h.text @work.watchers_count
                    end
                  end

                  h.tag :li, class: "list-inline-item" do
                    h.tag :span, class: "small text-muted" do
                      h.text t("noun.ratings_count")
                      h.text ":"
                    end

                    h.tag :span, class: "fw-bold ms-1" do
                      h.text @work.no_episodes? ? "-" : @work.ratings_count
                    end
                  end
                end

                h.tag :ul, class: "list-inline mb-0" do
                  if locale_ja? && @work.official_site_url.present?
                    h.tag :li, class: "list-inline-item" do
                      h.tag :a, href: @work.official_site_url, target: "_blank", rel: "noopener" do
                        h.text t("activerecord.attributes.work.official_site_url")
                        h.tag :i, class: "fas fa-external-link-alt ms-1 small"
                      end
                    end
                  elsif locale_en? && @work.official_site_url_en.present?
                    h.tag :li, class: "list-inline-item" do
                      h.tag :a, href: @work.official_site_url_en, target: "_blank", rel: "noopener" do
                        h.text t("activerecord.attributes.work.official_site_url")
                        h.tag :i, class: "fas fa-external-link-alt ms-1 small"
                      end
                    end
                  end

                  if locale_ja? && @work.wikipedia_url.present?
                    h.tag :li, class: "list-inline-item" do
                      h.tag :a, href: @work.wikipedia_url, target: "_blank", rel: "noopener" do
                        h.text t("activerecord.attributes.work.wikipedia_url")
                        h.tag :i, class: "fas fa-external-link-alt ms-1 small"
                      end
                    end
                  elsif locale_en? && @work.wikipedia_url_en.present?
                    h.tag :li, class: "list-inline-item" do
                      h.tag :a, href: @work.wikipedia_url_en, target: "_blank", rel: "noopener" do
                        h.text t("activerecord.attributes.work.wikipedia_url")
                        h.tag :i, class: "fas fa-external-link-alt ms-1 small"
                      end
                    end
                  end
                end

                if @programs.present?
                  h.tag :ul, class: "list-inline mt-2" do
                    @programs.each do |program|
                      h.tag :li, class: "list-inline-item mt-2" do
                        h.tag :a, class: "btn btn-outline-primary btn-sm rounded-pill", href: program.vod_title_url, target: "_blank", rel: "noopener" do
                          h.text program.channel.name

                          if program.vod_title_name.present? && program.vod_title_name != @work.title
                            h.tag :span, class: "ms-1" do
                              h.text "(#{program.vod_title_name})"
                            end
                          end

                          h.tag :i, class: "fas fa-external-link-alt ms-1 small"
                        end
                      end
                    end
                  end
                end

                if @work.copyright
                  h.tag :div, class: "mt-3 text-muted u-very-small" do
                    h.tag :i, class: "far fa-copyright me-1"
                    h.text @work.copyright
                  end
                end

                h.tag :div, class: "mt-3" do
                  h.html Deprecated::Buttons::ShareToTwitterButtonComponent.new(
                    view_context,
                    text: @work.local_title,
                    url: "#{local_url}#{view_context.work_path(@work.id)}"
                  ).render
                end

                if current_user&.committer?
                  h.tag :div, class: "mt-3" do
                    h.tag :a, href: view_context.db_edit_work_path(@work) do
                      h.text t("messages._common.edit_on_annict_db")
                    end
                  end
                end