{isInPostView || isInPendingPostPage ? (
<>
>
) : (
<>
{isInCatalogView ? (
) : (
)}
{!(isInAllView || isInSubscriptionsView) &&
}
{isInCatalogView && (
<>
{(isInAllView || isInSubscriptionsView) && (
<>
>
)}
>
)}
{(isInAllView || isInSubscriptionsView) && !isInCatalogView && (
<>
>
)}
>
)}
);
};
export const DesktopBoardButtons = () => {
const params = useParams();
const location = useLocation();
const accountComment = useAccountComment({ commentIndex: params?.accountCommentIndex as any });
const subplebbitAddress = params?.subplebbitAddress || accountComment?.subplebbitAddress;
const isInCatalogView = isCatalogView(location.pathname, params);
const isInAllView = isAllView(location.pathname);
const isInPendingPostPage = isPendingPostView(location.pathname, params);
const isInPostView = isPostPageView(location.pathname, params);
const isInSubscriptionsView = isSubscriptionsView(location.pathname);
return (
<>
{isInPostView || isInPendingPostPage ? (
<>
[
] [
]
{isInPostView && (
[
]
)}
>
) : (
<>
{isInCatalogView ? (
<>
[
]{' '}
>
) : (
<>
[
]{' '}
>
)}
[]
{isInCatalogView && }
{!(isInAllView || isInSubscriptionsView) && (
<>
[
]
>
)}
{(isInAllView || isInSubscriptionsView) && (
<>
>
)}
>
)}
>
);
};