@codex-storage/marketplace-ui-components
Version:
Marketplace UI components for Codex decentralized storage network.
33 lines (32 loc) • 810 B
JavaScript
import { jsxs as r, jsx as e } from "react/jsx-runtime";
import { Button as s } from "../Button/Button.js";
import '../../assets/Placeholder.css';function h({
title: c,
message: i,
Icon: a,
subtitle: d,
className: o = "",
onRetry: l
}) {
return /* @__PURE__ */ r("div", { className: "placeholder " + o, children: [
/* @__PURE__ */ e("div", { children: a }),
/* @__PURE__ */ e("b", { children: c }),
d && /* @__PURE__ */ e("p", { children: "subtitle" }),
/* @__PURE__ */ r("div", { className: "placeholder-message", children: [
i,
" "
] }),
l && /* @__PURE__ */ e(
s,
{
label: "Retry",
onClick: l,
className: "placeholder-button"
}
)
] });
}
export {
h as Placeholder
};
//# sourceMappingURL=Placeholder.js.map