import { cookies } from "next/headers"; import { notFound } from "next/navigation"; import { getFollowingList } from "@/lib/api"; import { UserListCard } from "@/components/user-list-card"; interface FollowingPageProps { params: { username: string }; } export default async function FollowingPage({ params }: FollowingPageProps) { const { username } = params; const token = (await cookies()).get("auth_token")?.value ?? null; const followingData = await getFollowingList(username, token).catch( () => null ); if (!followingData) { notFound(); } return (

Following

Users that @{username} follows.

); }