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

//#region src/notification/notificationIcon.tsx
/** Displays an icon based on the status within the Notification. */
const NotificationIcon = vui((props, ref) => {
	const { className, alignSelf, ...rest } = props;
	const mergedProps = {
		...useNotificationContext(),
		...props
	};
	const styles = useStyleConfig("Notification", useNotificationContext());
	const { status = "" } = mergedProps;
	const { iconProps } = notificationStatusMapping[status] ?? {};
	const marginTop = alignSelf === "center" ? "0" : "16px";
	return /* @__PURE__ */ jsx(icon_default, {
		alignSelf,
		className: cs("vui-notificationIcon", className),
		ml: "16px",
		mt: marginTop,
		ref,
		size: "md",
		variant: "loading",
		...styles.icon,
		...iconProps,
		...rest
	});
});
NotificationIcon.displayName = "NotificationIcon";
var notificationIcon_default = NotificationIcon;

//#endregion
export { NotificationIcon, notificationIcon_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=notificationIcon.js.map