UNPKG

@uva-glass/component-library

Version:

React components UvA

32 lines (31 loc) 977 B
import { jsxs as r, jsx as s } from "react/jsx-runtime"; import { c as a } from "../../clsx-OuTLNxxd.js"; import { Icon as b } from "../Icon/Icon.js"; import '../../assets/FeedbackBox.css';const c = { "feedback-box": "_feedback-box_1th4y_1", "feedback-box__success": "_feedback-box__success_1th4y_15", "feedback-box__warning": "_feedback-box__warning_1th4y_19", "feedback-box__error": "_feedback-box__error_1th4y_23" }, n = { success: "CheckCircle", warning: "ExclamationCircle", error: "ExclamationTriangleMini" }, f = ({ id: _, level: e, feedback: o }) => /* @__PURE__ */ r( "div", { className: a(c["feedback-box"], { [c["feedback-box__success"]]: e === "success", [c["feedback-box__warning"]]: e === "warning", [c["feedback-box__error"]]: e === "error" }), id: _, children: [ /* @__PURE__ */ s(b, { name: n[e], size: 16 }), o ] } ); export { f as FeedbackBox }; //# sourceMappingURL=FeedbackBox.js.map