import { jsx } from "react/jsx-runtime";
import "react";
import "@netlify/ui";
import Alert$1 from "../vendor/Alert/Alert.js";
const Alert = ({
  type = "info",
  children,
  onClose,
  icon,
  ...otherProps
}) => /* @__PURE__ */ jsx(
  Alert$1,
  {
    error: type === "error" ? children : void 0,
    info: type === "info" ? children : void 0,
    warning: type === "warn" ? children : void 0,
    onDismiss: onClose,
    iconName: icon,
    ...otherProps
  }
);
export {
  Alert
};
//# sourceMappingURL=Alert.js.map
