@dndbuilder.com/react
Version:
Drag and drop builder for React
20 lines (19 loc) • 716 B
JavaScript
import { jsx as n } from "react/jsx-runtime";
const e = ({ settings: o, meta: l }) => {
var t, a;
const i = (l == null ? void 0 : l.locale) || "en", r = (t = o.text) == null ? void 0 : t[i];
return /* @__PURE__ */ n("div", { className: "button-wrapper", children: (a = o.link) != null && a.url ? /* @__PURE__ */ n(
"a",
{
href: o.link.url,
target: o.link.newWindow ? "_blank" : void 0,
rel: o.link.nofollow ? "nofollow" : void 0,
className: "btn transition-colors duration-300",
children: r
}
) : /* @__PURE__ */ n("button", { className: "btn transition-colors duration-300", children: r }) });
};
export {
e as default
};
//# sourceMappingURL=button.block.js.map