diff --git a/thoughts-frontend/app/users/[username]/page.tsx b/thoughts-frontend/app/users/[username]/page.tsx index 4cb347f..659e17b 100644 --- a/thoughts-frontend/app/users/[username]/page.tsx +++ b/thoughts-frontend/app/users/[username]/page.tsx @@ -53,6 +53,8 @@ import { buildThoughtThreads } from "@/lib/utils"; import { ThoughtThread } from "@/components/thought-thread"; import { Button } from "@/components/ui/button"; import Link from "next/link"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; +import { FederationPanel } from "@/components/federation/federation-panel"; interface ProfilePageProps { params: Promise<{ username: string }>; @@ -250,24 +252,39 @@ export default async function ProfilePage({ params }: ProfilePageProps) { id="profile-card__thoughts" className="col-span-1 lg:col-span-3 space-y-4" > - {thoughtThreads.map((thought) => ( - - ))} - {thoughtThreads.length === 0 && ( - - - This user hasn't posted any public thoughts yet. - - - )} + + + Thoughts + {isOwnProfile && ( + Federation + )} + + + {thoughtThreads.map((thought) => ( + + ))} + {thoughtThreads.length === 0 && ( + + + This user hasn't posted any public thoughts yet. + + + )} + + {isOwnProfile && ( + + + + )} +
- This user hasn't posted any public thoughts yet. -
+ This user hasn't posted any public thoughts yet. +