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: helpers.rb
    path of file: ./repos/hyperstack/ruby/hyper-router/lib/hyperstack/internal/router
    
    the code of the file until where you have to start completion: # rubocop:disable Style/MethodName
module Hyperstack
  module Internal
    module Router
      module Helpers
     
    
        def Link(to, opts = {}, &children)
          opts[:to] = {}.tap do |hash|
            hash[:pathname] = to
            hash[:search] = opts.delete(:search) if opts[:search]
            hash[:hash] = opts.delete(:hash) if opts[:hash]
          end.to_n
          React::Router::DOM::Link(opts, &children)
        end

        def NavLink(to, opts = {}, &children)
          opts[:to] = to.to_n
          if (%i[active_class active_style active] & opts.keys).any?
            opts[:activeClassName] = opts.delete(:active_class).to_n if opts[:active_class]
            opts[:activeStyle] = opts.delete(:active_style).to_n if opts[:active_style]
            opts[:isActive] = opts.delete(:active).to_n if opts[:active]
            State::Mapper.observed! Hyperstack::Router::Location
          end
          React::Router::DOM::NavLink(opts, &children)
        end