Add player bug reports and profile identity features
This commit is contained in:
27
app/support/page.tsx
Normal file
27
app/support/page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Header, Footer } from "@/components/Shell";
|
||||
import { SupportInbox } from "@/components/Support";
|
||||
import { getI18n } from "@/lib/i18n";
|
||||
export async function generateMetadata() {
|
||||
const { t } = await getI18n();
|
||||
return { title: t("Report a bug") };
|
||||
}
|
||||
export default async function Support({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Promise<{ from?: string }>;
|
||||
}) {
|
||||
const query = await searchParams;
|
||||
const pagePath =
|
||||
query.from && /^\/(?!\/)[a-zA-Z0-9/_-]{0,299}$/.test(query.from)
|
||||
? query.from
|
||||
: "/";
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main className="section page-content">
|
||||
<SupportInbox pagePath={pagePath} />
|
||||
</main>
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user