UNPKG

@payfit/unity-components

Version:

29 lines (28 loc) 770 B
import { Button as e } from "../../button/Button.js"; import { forwardRef as t, useCallback as n } from "react"; import { jsx as r } from "react/jsx-runtime"; //#region src/components/funnel-layout/parts/FunnelPageAction.tsx var i = t(({ actionType: t, children: i, ...a }, o) => /* @__PURE__ */ r(e, { ref: o, "data-dd-privacy": "allow", ...n((e) => { switch (e) { case "previous": return { variant: "outlined" }; case "next": return { variant: "primary", color: "primary" }; case "optional": return { variant: "ghost", color: "neutral" }; } }, [])(t), ...a, "data-unity-component": "FunnelPageAction", "data-action-type": t, children: i })); i.displayName = "FunnelPageAction"; //#endregion export { i as FunnelPageAction };