UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

25 lines (24 loc) 1.07 kB
import { jsx as s } from "../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js"; import n from "../Button/hooks/useButton.js"; import { DEFAULT_BASE_BUTTON_CLASSNAME as r } from "./constants.js"; import { useMemo as e } from "../../../external/.pnpm/preact@10.28.2/node_modules/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 } = n( o, [...t.classNameModifiers || [], ...t.fullWidth ? ["full-width"] : []], r, l, t, t.type, 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 };