feat(P5C.T1): empty-state for empty chat-list search results

This commit is contained in:
byGalax
2026-05-16 22:14:33 +02:00
parent 70ce824120
commit d7c0c3d0a2
+8
View File
@@ -224,6 +224,14 @@ function ConversationList({
</div>
) : error ? (
<p className="px-4 py-2 text-xs text-rose-500 dark:text-rose-300">{error}</p>
) : query.trim().length > 0 && items.length === 0 ? (
<EmptyState
icon={<SearchIcon className="h-8 w-8" />}
title={t('app:chats.search_empty_title', { defaultValue: 'Keine Treffer' })}
description={t('app:chats.search_empty_desc', {
defaultValue: 'Keine Chats passen zu "' + query.trim() + '".',
})}
/>
) : items.length === 0 ? (
showArchived ? (
<EmptyState