<div id="component-builder-toolbar-menu" class="component-builder-toolbar-menu">
  <a id="icon-toolbar-menu" class="icon-toolbar-menu" href="javascript:void(0)"><em>Icon</em></a>
  <div class="mode">
    <strong>Mode</strong>
    <div class="switch-btn">
      <div class="btn-mode btn-mode-builder active" title="Builder component">Builder</div>
      <div class="btn-mode btn-mode-review" title="Preview component">Preview</div>
      <div class="btn-add-new">
        {% set route_name = 'entity.' ~ entity_type_id ~ '.component_builder_toolbar_add_component' %}
        <a
          title="Add component"
          href="{{ url(route_name, {(entity_type_id): entity_id, 'field_name': field_name}) }}"
          class="component-builder-toolbar__add-new-wrapper use-ajax"
          data-dialog-type="modal"
          data-dialog-options="{{ {'width': 1200}|json_encode }}"
        >
          Add
        </a>
      </div>
    </div>
  </div>
</div>
