Show a different navigation menu to wholesalers

I am trying to create a seperate menu for customers tagged as wholesale. I am looking in header.liquid for the following code: {% for link in linklists.main-menu.links %} or {% for link in linklists[section.settings.main_linklist].links %} but can’t find it in the Dawn theme.

I would like to replace it with this:

{% assign menu_handle = ‘main-menu’ %}
{% if customer %}
{% if customer.tags contains ‘wholesale’ %}
{% assign menu_handle = ‘main-menu-wholesale’ %}
{% endif %}
{% endif %}
{% include ‘site-nav’, linklist: menu_handle %}

Can you please assist in finding where I can add the snippet of code above in my Dawn theme?

In the list of files on the left side, look for “header.liquid” and click on it to open the file.

Search for the code {% include 'site-nav' %}.

Replace that code with the code you provided:

{% assign menu_handle = 'main-menu' %}
{% if customer %}
  {% if customer.tags contains 'wholesale' %}
    {% assign menu_handle = 'main-menu-wholesale' %}
  {% endif %}
{% endif %}
{% include 'site-nav', linklist: menu_handle %}

This will add the code to check if the customer is tagged as wholesale and switch to the appropriate menu accordingly.