{
setQuery(e.target.value);
setRawError('');
}}
placeholder={t('socialUi.newMessage.searchPlaceholder')}
className="bg-gray-900 border-gray-700 text-white pl-9 h-11"
autoFocus
/>
{/* Direct-open affordance when a raw key is pasted */}
{(looksLikeNpub || looksLikeHex) && (
)}
{rawError &&
{rawError}
}
{/* People list */}
{!looksLikeNpub && !looksLikeHex && (
{isLoading ? (
{t('socialUi.newMessage.loadingPeople')}
) : !hasAnyCandidates ? (
{t('socialUi.newMessage.noPeople')}
{t('socialUi.newMessage.noPeopleHint')}
) : (
{crewCandidates.length > 0 && (
{t('socialUi.newMessage.yourCrews')}
{crewCandidates.map((c) => (
))}
)}
{followingCandidates.length > 0 && (
{t('socialUi.newMessage.following')}
{followingCandidates.map((c) => (
))}
)}
)}
)}
{selected.length > 0 && (
{t('socialUi.newMessage.selected', { count: selected.length })}
)}