-
className="flex flex-col gap-1 p-0 data-empty:p-0">
- {(item) => (
- {
- onSuggestionSelect(item.selection)
- queueMicrotask(() => {
- onValueChange('')
- setIsOpen(false)
- })
- }
- : undefined
- }
- >
- {item.iconUrl ? (
-
{
- currentTarget.style.display = 'none'
- }}
- />
- ) : (
-
- )}
-
-
- {item.label}
-
- {!!item.description && (
-
- {item.description}
-
- )}
- {!!item.meta && (
-
- {item.meta}
-
- )}
-
-
- )}
-
+
{!isSearching && suggestions.length === 0 ? emptyText : null}
{isSearching ? t(($) => $.loading, { ns: 'common' }) : null}
+ {Boolean(inputName) && suggestions.length > 0 && !isSearching && (
+
+
+
+ )}