feat: add policy pages

This commit is contained in:
gosangam
2026-06-02 01:57:08 +05:30
parent 0352cb2003
commit 91d5d272d2
168 changed files with 1326 additions and 81 deletions
+28
View File
@@ -0,0 +1,28 @@
/**
* /u/[handle] — public profile, Posts tab (default).
*
* Server shell that exists for two reasons:
*
* 1. Export `generateMetadata` so direct shares of this URL
* (https://prabhupadasays.org/u/<handle>) get a rich OG card
* pointing at /api/og/profile/<handle>. The layout and the body
* below are client components; only this file is server.
* 2. Mount the client tree (<PostsGrid />), which reads the
* ProfileContext provided by the parent layout for the post-grid
* hrefs and renders the feed.
*/
import type { Metadata } from "next";
import { PostsGrid } from "./posts-grid";
import { metadataForHandle } from "./profile-og";
type Props = { params: Promise<{ handle: string }> };
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { handle } = await params;
return metadataForHandle(handle);
}
export default function PublicProfilePage({ params }: Props) {
return <PostsGrid params={params} />;
}