Files
MineGeo/app/support/page.tsx
pavel444-byte 927923dc95
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 11m31s
Improve accessibility and polish page styling
2026-10-24 14:11:17 +05:00

28 lines
731 B
TypeScript

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" id="main-content" tabIndex={-1}>
<SupportInbox pagePath={pagePath} />
</main>
<Footer />
</>
);
}