import { reactCssPropsToCss as s } from "../utils/reactCssPropsToCss.es.js";
const i = (t, n, u, l) => {
  const a = l["button-plugin"], o = t.buttonStyle ?? "primary", b = `button${o.charAt(0).toUpperCase()}${o.slice(1)}`, e = a[b], r = s(e);
  return `<a href="${t.url}" target="${t.target ?? "_blank"}"
                dir="auto"
                style="${r}"
                class="${u}"
                onmouseenter="this.setAttribute('style', '${r} ${s(e.hover)}');"
                onmouseleave="this.setAttribute('style', '${s(e)}');"
                >${n}</a>`;
};
export {
  i as buttonNode
};
//# sourceMappingURL=button.es.js.map
