-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
107df80
commit aad6a98
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |