<%
  const _isAr = typeof lang === 'undefined' || lang !== 'en';
  const _modeLabel = mode === 'show'
    ? (_isAr ? 'عرض المحتوى' : 'Content details')
    : mode === 'edit'
      ? (_isAr ? 'تحرير المحتوى' : 'Edit content')
      : (_isAr ? 'محتوى جديد' : 'New content');
%>
<header class="kt-info-editor__hero">
  <div class="kt-info-editor__identity">
    <span class="kt-info-editor__icon" aria-hidden="true"><i class="ti <%= icon %>"></i></span>
    <div>
      <p class="kt-info-editor__eyebrow"><%= _modeLabel %></p>
      <h1><%= title %></h1>
      <p><%= description %></p>
    </div>
  </div>
  <a class="kt-info-editor__back" href="<%= typeof referer === 'string' && referer ? referer : listUrl %>">
    <i class="ti ti-arrow-right" aria-hidden="true"></i>
    <span><%= i18n.__('common.referer') %></span>
  </a>
</header>
