{isInPostView || isInPendingPostPage ? (
<>
>
) : (
<>
{isInCatalogView ? (
) : (
)}
{!(isInAllView || isInSubscriptionsView) &&
}
{isInCatalogView && filteredCount > 0 && (
{' '}
— {t('filtered_threads')}: {filteredCount}
)}
{isInCatalogView && (
<>
>
)}
>
)}
);
};
const PostPageStats = () => {
const { t } = useTranslation();
const params = useParams();
const location = useLocation();
const isInDescriptionView = isDescriptionView(location.pathname, params);
const comment = useComment({ commentCid: params?.commentCid });
const subplebbit = useSubplebbit({ subplebbitAddress: params?.subplebbitAddress });
const descriptionReplyCount = location?.pathname.startsWith('/p/all/') ? 0 : subplebbit?.rules?.length > 0 ? 1 : 0;
const { closed, pinned, replyCount } = comment || {};
const linkCount = useCountLinksInReplies(comment);
const displayReplyCount = replyCount !== undefined ? replyCount.toString() : isInDescriptionView ? descriptionReplyCount : '?';
const replyCountTooltip = replyCount !== undefined || isInDescriptionView ? _.capitalize(t('replies')) : t('loading');
return (
{isInPostView || isInPendingPostPage ? (
<>
[
] [
] [
] [
]
>
) : (
<>
{isInCatalogView ? (
<>
[
]{' '}
>
) : (
<>
[
]{' '}
>
)}
[
]
{isInCatalogView && filteredCount > 0 && (
{' '}
— {t('filtered_threads')}: {filteredCount}
)}
{isInCatalogView && (
<>
>
)}
{(isInAllView || isInSubscriptionsView) && (
)}
{isInCatalogView && (
<>
[
]
>
)}{' '}
{!(isInAllView || isInSubscriptionsView) && (
<>
[
]
>
)}
>
)}
>
);
};