diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsx
index cd3c147..99a0d4d 100644
--- a/src/app/(app)/page.tsx
+++ b/src/app/(app)/page.tsx
@@ -75,6 +75,7 @@ function Mobile() {
{friendsPostsData.map((post, index) => (
void;
onWarning: () => void;
onDelete: () => void; // Callback for deleting the post
- allowReactions: boolean; // New property to toggle reactions
+ allowReactions: boolean; // Property to toggle reactions
+ showDeleteButton?: boolean; // New property to toggle the delete button
}
export default function Post({
@@ -23,6 +24,7 @@ export default function Post({
onWarning,
onDelete,
allowReactions,
+ showDeleteButton = true, // Default to true if not provided
}: PostProps) {
const [userData, setUserData] = useState<{ username: string; avatar: number } | null>({
username: "Loading...",
@@ -112,12 +114,14 @@ export default function Post({
>
😭 Stop drinking that ({post.reactions.filter((reaction) => reaction.warned).length})
-
+ {showDeleteButton && (
+
+ )}
);