212d6f7335
Root layout used title.template ("%s | Epicure") and 38 pages set
their own title, producing "Recipes | Epicure", "Messages — Epicure",
etc. Drop the template, set a flat "Epicure" default, and clear every
page's title override so they all inherit it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
23 lines
770 B
TypeScript
23 lines
770 B
TypeScript
import type { Metadata } from "next";
|
|
import { headers } from "next/headers";
|
|
import { auth } from "@/lib/auth/server";
|
|
import { PeopleSearch } from "@/components/social/people-search";
|
|
import { getMessages } from "@/lib/i18n/server";
|
|
|
|
export const metadata: Metadata = {};
|
|
|
|
export default async function PeoplePage() {
|
|
const session = await auth.api.getSession({ headers: await headers() });
|
|
const m = getMessages((session?.user as { locale?: string } | undefined)?.locale);
|
|
|
|
return (
|
|
<div className="max-w-2xl mx-auto space-y-6">
|
|
<div>
|
|
<h1 className="text-2xl font-bold tracking-tight">{m.people.title}</h1>
|
|
<p className="text-muted-foreground text-sm mt-1">{m.people.subtitle}</p>
|
|
</div>
|
|
<PeopleSearch />
|
|
</div>
|
|
);
|
|
}
|