"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { AiIcon } from "@open-mercato/ui/ai/AiIcon";
import { Button } from "@open-mercato/ui/primitives/button";
import { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider } from "@open-mercato/ui/primitives/tooltip";
function AiChatButton({ onClick, className }) {
  const handleClick = (e) => {
    e.preventDefault();
    onClick?.();
  };
  const isMac = typeof navigator !== "undefined" && navigator.platform?.toUpperCase().indexOf("MAC") >= 0;
  return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
    /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
      Button,
      {
        type: "button",
        variant: "ghost",
        size: "icon",
        onClick: handleClick,
        className,
        "aria-label": "Open AI Assistant",
        children: /* @__PURE__ */ jsx(AiIcon, { className: "h-5 w-5 text-foreground" })
      }
    ) }),
    /* @__PURE__ */ jsx(TooltipContent, { side: "bottom", children: /* @__PURE__ */ jsxs("p", { children: [
      "AI Assistant (",
      isMac ? "\u2318" : "Ctrl+",
      "J)"
    ] }) })
  ] }) });
}
export {
  AiChatButton
};
//# sourceMappingURL=AiChatButton.js.map
