{loading ? (
{Array.from({ length: 5 }).map((_, i) => (
))}
) : filtered.length === 0 ? (
{hasSearch ? t('picker_empty_search', { query: search.trim() }) : t('picker_empty')}
) : (
filtered.map((it) => {
const isLinking = linkingId === it.document_id
const sourceLabel =
it.source === 'email' ? t('picker_source_email') : t('picker_source_upload')
return (
)
})
)}