import { redirect } from "next/navigation"; import { RepliesTabs } from "@/components/forum/RepliesTabs"; import { ThreadList } from "@/components/forum/ThreadList"; import type { ForumViewer, ThreadCard } from "@/lib/forum"; import { forumGet } from "@/lib/forumServer"; export const metadata = { title: "Követett szálak", robots: { index: false } }; /** The threads the member follows (their own and the ones they replied to), with what is new. */ export default async function FollowedPage() { const res = await forumGet<{ viewer: ForumViewer; threads: ThreadCard[] }>("/v1/forum/followed"); if (!res.ok) redirect("/belepes?vissza=/forum/kovetett"); const { threads } = res.data; return (
A saját szálaid, azok, amelyekhez hozzászóltál, és amelyeket követni kezdtél.
{threads.length === 0 ? (Még nem követsz egy szálat sem.
) : (