"use client";
import { jsx as n } from "react/jsx-runtime";
import { RenderIcon as e } from "../../../components/shared/render-icon.js";
const m = ({ settings: o }) => {
  var i, l, r;
  const c = /* @__PURE__ */ n(e, { iconSet: (i = o.icon) == null ? void 0 : i.iconSet, iconName: (l = o.icon) == null ? void 0 : l.iconName });
  return /* @__PURE__ */ n("div", { className: "icon-wrapper", children: /* @__PURE__ */ n("div", { className: "icon", children: (r = o.link) != null && r.url ? /* @__PURE__ */ n(
    "a",
    {
      href: o.link.url,
      target: o.link.newWindow ? "_blank" : void 0,
      rel: o.link.nofollow ? "nofollow" : void 0,
      children: c
    }
  ) : c }) });
};
export {
  m as default
};
//# sourceMappingURL=icon.block.js.map
