$newline never
<div .pagenav>
  $if hasPrimaryPageActions
    <div .pagenav-prime>
      $forall (MenuItem{menuItemLabel, menuItemType, menuItemModal}, menuIdent, route) <- menuTypes
        $case menuItemType
          $of PageActionPrime
            <div .pagenav__list-item>
              $if menuItemModal
                <div uw-modal data-modal-trigger=#{menuIdent} data-modal-closeable>
              <a .pagenav__link-wrapper href=#{route} ##{menuIdent}>_{SomeMessage menuItemLabel}
          $of _
  $if hasSecondaryPageActions
    <div .pagenav-secondary>
      <div .pagenav-secondary__list>
        $forall (MenuItem{menuItemLabel, menuItemType, menuItemModal}, menuIdent, route) <- menuTypes
          $case menuItemType
            $of PageActionSecondary
              <div .pagenav__list-item.pagenav__list-item--secondary>
                $if menuItemModal
                  <div uw-modal data-modal-trigger=#{menuIdent} data-modal-closeable>
                <a .pagenav__link-wrapper.pagenav__link-wrapper--secondary href=#{route} ##{menuIdent}>_{SomeMessage menuItemLabel}
            $of _
