"use client";
import { jsx } from "react/jsx-runtime";
import Link from "next/link";
import { Settings } from "lucide-react";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { IconButton } from "../primitives/icon-button.js";
function SettingsButton({ href = "/backend/settings" }) {
  const t = useT();
  return /* @__PURE__ */ jsx(
    IconButton,
    {
      asChild: true,
      variant: "ghost",
      size: "sm",
      title: t("backend.nav.settings", "Settings"),
      children: /* @__PURE__ */ jsx(Link, { href, children: /* @__PURE__ */ jsx(Settings, { className: "size-4" }) })
    }
  );
}
export {
  SettingsButton
};
//# sourceMappingURL=SettingsButton.js.map
