import { jsx } from "react/jsx-runtime";
import { Tooltip as Tooltip$1 } from "@netlify/ui";
import "react";
const mapTypeToIntent = (type) => {
  switch (type) {
    case "warn":
      return "warning";
    case "info":
    case "error":
      return type;
  }
};
const Tooltip = ({ children, type, ...otherProps }) => /* @__PURE__ */ jsx(
  Tooltip$1,
  {
    description: children,
    intent: type !== void 0 ? mapTypeToIntent(type) : void 0,
    ...otherProps
  }
);
export {
  Tooltip
};
//# sourceMappingURL=Tooltip.js.map
