import { jsxs, jsx } from "react/jsx-runtime";
import { IconInfoCircle } from "../../icons/index.mjs";
/* empty css                                                                                                                                                                                       */
/* empty css                                                                                                                                                                                        */
/* empty css                                                                                                                                                                                                */
/* empty css                                                                                                                                                                                           */
/* empty css                                                                                                                                                                                           */
import { Typography } from "../../primitive/Typography/index.mjs";
import { HoverCard } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/HoverCard/HoverCard.mjs";
import { Box } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.mjs";
function LabelTooltip({ label, ...rest }) {
  return /* @__PURE__ */ jsxs(HoverCard, { shadow: "md", withArrow: true, withinPortal: true, position: "top", ...rest, children: [
    /* @__PURE__ */ jsx(HoverCard.Target, { children: /* @__PURE__ */ jsx(Box, { sx: { marginLeft: 8, verticalAlign: "middle", position: "relative", top: 1 }, component: "span", children: /* @__PURE__ */ jsx(IconInfoCircle, { cursor: "pointer", size: 14, color: "carbon.8" }) }) }),
    /* @__PURE__ */ jsx(HoverCard.Dropdown, { maw: 480, children: /* @__PURE__ */ jsx(Typography, { variant: "body-lg", children: label }) })
  ] });
}
export {
  LabelTooltip
};
