1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

release 0.3.4

This commit is contained in:
songjunxi
2023-11-10 14:59:47 +08:00
parent 2b456637e9
commit 602f2059fd
161 changed files with 9921 additions and 347 deletions

View File

@@ -0,0 +1,22 @@
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import Wrapper from "./wrapper";
import Nav from "@/ui/layout/nav";
import FooterPublish from "@/ui/layout/footer-publish";
// export async function generateMetadata({ params, searchParams }): Metadata {
// const data = await getDetail(params.slug);
// return { title: data.title };
// }
export default async function Page({ params }: { params: { id: string } }) {
const session = await getServerSession(authOptions);
return (
<div className="mt-16 flex flex-col items-center sm:mx-6 sm:px-3">
{/* @ts-expect-error Server Component */}
<Nav />
<Wrapper id={params.id} session={session} />
<FooterPublish />
</div>
);
}