"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { LanguageSwitcher } from "./LanguageSwitcher.js";
function AuthFooter() {
  const pathname = usePathname();
  const t = useT();
  const shouldShow = pathname === "/login" || typeof pathname === "string" && pathname.startsWith("/onboarding");
  if (!shouldShow) return null;
  return /* @__PURE__ */ jsx("footer", { className: "w-full border-t bg-background/80 backdrop-blur supports-[backdrop-filter]:bg-background/80", children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-lg mx-auto px-4 py-3 flex flex-wrap items-center justify-end gap-4", children: [
    /* @__PURE__ */ jsxs("nav", { className: "flex items-center gap-3 text-xs text-muted-foreground", children: [
      /* @__PURE__ */ jsx(Link, { href: "/terms", className: "transition hover:text-foreground", children: t("common.terms") }),
      /* @__PURE__ */ jsx(Link, { href: "/privacy", className: "transition hover:text-foreground", children: t("common.privacy") })
    ] }),
    /* @__PURE__ */ jsx(LanguageSwitcher, {})
  ] }) });
}
export {
  AuthFooter
};
//# sourceMappingURL=AuthFooter.js.map
