20 lines
524 B
TypeScript
20 lines
524 B
TypeScript
"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>
|
|
);
|
|
}
|