diff --git a/app/(home-pages)/home/LeafletList/LeafletInfo.tsx b/app/(home-pages)/home/LeafletList/LeafletInfo.tsx
index eb0fda72..f2326132 100644
--- a/app/(home-pages)/home/LeafletList/LeafletInfo.tsx
+++ b/app/(home-pages)/home/LeafletList/LeafletInfo.tsx
@@ -50,6 +50,7 @@ export const LeafletInfo = (props: {
document_uri={props.document_uri}
shareLink={`/${props.token.id}`}
archived={props.archived}
+ loggedIn={props.loggedIn}
/>
diff --git a/app/(home-pages)/home/LeafletList/LeafletOptions.tsx b/app/(home-pages)/home/LeafletList/LeafletOptions.tsx
index 1a6125fc..1760afde 100644
--- a/app/(home-pages)/home/LeafletList/LeafletOptions.tsx
+++ b/app/(home-pages)/home/LeafletList/LeafletOptions.tsx
@@ -22,6 +22,8 @@ import {
} from "app/lish/[did]/[publication]/dashboard/deletePost";
import { ShareButton } from "components/ShareOptions";
import { ShareSmall } from "components/Icons/ShareSmall";
+import { HideSmall } from "components/Icons/HideSmall";
+import { hideDoc } from "../storage";
import { PermissionToken } from "src/replicache";
import {
@@ -40,11 +42,15 @@ export const LeafletOptions = (props: {
document_uri?: string;
shareLink: string;
archived?: boolean | null;
+ loggedIn?: boolean;
}) => {
let [state, setState] = useState<"normal" | "template" | "areYouSure">(
"normal",
);
let [open, setOpen] = useState(false);
+ let { identity } = useIdentityData();
+ let isPublicationOwner =
+ !!identity?.atp_did && !!props.document_uri?.includes(identity.atp_did);
return (
<>