UNPKG

@payfit/unity-components

Version:

30 lines (29 loc) 683 B
import { Button as e } from "../../button/Button.js"; import { forwardRef as t } from "react"; import { jsx as n } from "react/jsx-runtime"; //#region src/components/action-bar/parts/ActionBarButton.tsx var r = t(({ variant: t = "secondary", children: r, onPress: i, ...a }, o) => { let s = { primary: { variant: "primary", color: "inverted" }, secondary: { variant: "ghost", color: "inverted" } }[t]; return /* @__PURE__ */ n(e, { ref: o, variant: s.variant, color: s.color, onPress: i, size: "default", ...a, children: r }); }); r.displayName = "ActionBarButton"; var i = r; //#endregion export { i as ActionBarAction, r as ActionBarButton };