Files
MineGeo/components/ReportBugButton.tsx
pavel444-byte b8a430d4c2
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 10m3s
Add liquid glass filter definitions to site layout
2026-10-25 18:57:25 +05:00

20 lines
543 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 aria-hidden="true">{t("Report a bug")}</span>
</Link>
);
}