Add player bug reports and profile identity features
This commit is contained in:
19
components/ReportBugButton.tsx
Normal file
19
components/ReportBugButton.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client";
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { Bug } from "lucide-react";
|
||||
import { useI18n } from "./I18nProvider";
|
||||
export function ReportBugButton() {
|
||||
const { t } = useI18n();
|
||||
const pathname = usePathname();
|
||||
return (
|
||||
<Link
|
||||
className="header-report"
|
||||
href={`/support?from=${encodeURIComponent(pathname)}`}
|
||||
aria-label={t("Report a bug")}
|
||||
>
|
||||
<Bug size={18} aria-hidden="true" />
|
||||
<span>{t("Report a bug")}</span>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user