{{ define "timeline/fragments/notifications" }}
  <div class="border border-gray-200 dark:border-gray-700 rounded-sm divide-y divide-gray-200 dark:divide-gray-700">
    <div class="flex items-center justify-between bg-white/50 dark:bg-gray-800/50">
      <a href="/notifications" class="flex items-center gap-2 px-4 py-2 no-underline hover:no-underline flex-1">
        <h3 class="text-base dark:text-white flex items-center gap-2">
          {{ i "bell" "size-4 flex-shrink-0" }}
          Notifications
        </h3>
      </a>
      <a href="/notifications" class="text-sm font-normal flex items-center gap-1 pr-4 text-gray-500 dark:text-gray-400 no-underline hover:no-underline">
        View all {{ i "arrow-right" "size-3.5" }}
      </a>
    </div>

    {{ if not .LoggedInUser }}
      <div class="px-4 py-8 text-sm text-center text-gray-400 dark:text-gray-500">
        <div class="w-10 h-10 mx-auto mb-3 text-gray-300 dark:text-gray-600">
          {{ i "bell-off" "w-10 h-10" }}
        </div>
        <a href="/login">Log in</a> to view your inbox
      </div>
    {{ else if not .Notifications }}
      <div class="px-4 py-8 text-sm text-center text-gray-400 dark:text-gray-500">
        <div class="w-10 h-10 mx-auto mb-3 text-gray-300 dark:text-gray-600">
          {{ i "inbox" "w-10 h-10" }}
        </div>
        <p>All caught up!</p>
      </div>
    {{ else }}
      <div class="divide-y divide-gray-200 dark:divide-gray-700">
        {{ range .Notifications }}
          {{ template "notifications/fragments/item" . }}
        {{ end }}
      </div>
    {{ end }}
  </div>
{{ end }}
