feat(P5C.T1): empty-state for empty chat-list search results
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user