import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { useNotificationContext } from "./context.js";
import { notificationStatusMapping } from "./consts.js";
import Button from "../button/button.js";
import { jsx } from "react/jsx-runtime";

//#region src/notification/notificationButton.tsx
/** Displays an action button within the Notification. */
const NotificationButton = vui((props, ref) => {
	const { className, ...rest } = props;
	const mergedProps = {
		...useNotificationContext(),
		...props
	};
	const styles = useStyleConfig("Notification", useNotificationContext());
	const { status = "" } = mergedProps;
	const { variant } = notificationStatusMapping[status] ?? {};
	return /* @__PURE__ */ jsx(Button, {
		className: cs("vui-notificationButton", className),
		ml: "0px",
		mr: "16px",
		my: "16px",
		px: "12px",
		py: "6px",
		ref,
		size: "md",
		...styles.button,
		variant,
		...rest
	});
});
NotificationButton.displayName = "NotificationButton";

//#endregion
export { NotificationButton as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=notificationButton.js.map