@adyen/adyen-platform-experience-web
Version:

24 lines (23 loc) • 991 B
JavaScript
import { jsx as s } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
import r from "../Button/hooks/useButton.js";
import { DEFAULT_BASE_BUTTON_CLASSNAME as n } from "./constants.js";
import { useMemo as e } from "../../../external/preact/hooks/dist/hooks.module.js";
/* empty css */
import { fixedForwardRef as c } from "../../../utils/preact/fixedForwardRef.js";
import { parseClassName as f } from "../../../utils/preact/className.js";
import { parseBooleanProp as u } from "../../../utils/preact/props.js";
function d(t, a) {
const o = e(() => f("", t.className) || "", [t.className]), l = e(() => u(t.disabled || !1), [t.disabled]), { click: i, allProps: m } = r(
o,
[...t.classNameModifiers || [], ...t.fullWidth ? ["full-width"] : []],
n,
l,
t,
t.onClick
);
return /* @__PURE__ */ s("button", { type: t.type || "button", onClick: i, ref: a, ...m, children: t.children });
}
const x = c(d);
export {
x as default
};