Skip to content

Commit

Permalink
feat: simple guild page
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 22, 2024
1 parent 107df80 commit aad6a98
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/app/[guild]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { Metadata } from "next";

type Props = {
params: Promise<{ guild: string }>;
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
};

export async function generateMetadata({ params }: Props): Promise<Metadata> {
const urlName = (await params).guild;

return {
title: urlName,
};
}

const GuildPage = async ({ params }: Props) => {
const urlName = (await params).guild;

return (
<div className="grid gap-4">
<p>Guild page</p>
<p>{`URL name: ${urlName}`}</p>
</div>
);
};

export default GuildPage;

0 comments on commit aad6a98

Please sign in to comment.