UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

20 lines (19 loc) 692 B
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js"; import { AlertTypeOption as n } from "./types.js"; import { Icon as t } from "../Icon/Icon.js"; const f = ({ className: r, type: i }) => { switch (i) { case n.WARNING: return /* @__PURE__ */ e(t, { name: "warning-filled", className: r }); case n.CRITICAL: return /* @__PURE__ */ e(t, { name: "cross-circle-fill", className: r }); case n.HIGHLIGHT: return /* @__PURE__ */ e(t, { name: "info-filled", className: r }); case n.SUCCESS: default: return /* @__PURE__ */ e(t, { name: "checkmark-circle-fill", className: r }); } }; export { f as AlertIcon };