UNPKG

@codex-storage/marketplace-ui-components

Version:
21 lines (20 loc) 596 B
import { jsxs as o, jsx as r } from "react/jsx-runtime"; import { Button as h } from "../Button/Button.js"; import '../../assets/Failure.css';function a({ code: i, message: n, onClick: e, button: t = "Retry", title: l = "Something went wrong" }) { return /* @__PURE__ */ o("div", { className: "failure", children: [ /* @__PURE__ */ r("h1", { children: i }), /* @__PURE__ */ r("h2", { children: l }), /* @__PURE__ */ r("div", { children: n }), e && /* @__PURE__ */ r(h, { label: t, onClick: e }) ] }); } export { a as Failure }; //# sourceMappingURL=Failure.js.map