{knowledgeSpacesQuery.isPending ? (
) : knowledgeSpacesQuery.error && !knowledgeSpacesQuery.data ? (
isUnavailableError(knowledgeSpacesQuery.error) ? (
$['newKnowledge.unavailableTitle'])}
description={t(($) => $['newKnowledge.unavailableDescription'])}
/>
) : (
$['newKnowledge.errorTitle'])}
description={t(($) => $['newKnowledge.errorDescription'])}
action={
}
/>
)
) : knowledgeSpaces.length === 0 ? (
) : (
<>
$.knowledge)}>
{visibleKnowledgeSpaces.map((knowledgeSpace) => (
))}
{knowledgeSpacesQuery.isFetchNextPageError ? (
{t(($) => $['newKnowledge.errorDescription'])}
) : knowledgeSpacesQuery.hasNextPage ? (
) : null}
>
)}
{showExternalApiPanel && canConnect && (