@payfit/unity-components
Version:
20 lines (19 loc) • 607 B
JavaScript
import { Button as e } from "../../button/Button.js";
import { useUnityTheme as t } from "@payfit/unity-themes";
import { jsx as n } from "react/jsx-runtime";
//#region src/components/toast/parts/ToastAction.tsx
function r({ children: r, onPress: i }) {
let { theme: a } = t();
return /* @__PURE__ */ n("div", {
className: "uy:theme-legacy:self-end uy:theme-rebrand:self-start",
children: /* @__PURE__ */ n(e, {
variant: a === "rebrand" ? "secondary" : "ghost",
color: "primary",
onPress: i,
children: r
})
});
}
r.displayName = "ToastAction";
//#endregion
export { r as ToastAction };