import ActionButton, { useActionButtonContext } from "../ActionButton.js";
import StopLoading_default from "./StopLoading.js";
import { classNames } from "@v-c/util";
import { createVNode, defineComponent, mergeProps } from "vue";
//#region components/sender/components/LoadingButton/index.tsx
var LoadingButton_default = /* @__PURE__ */ defineComponent({
	name: "LoadingButton",
	inheritAttrs: false,
	setup(_, { attrs }) {
		const context = useActionButtonContext();
		return () => {
			const { prefixCls } = context.value;
			return createVNode(ActionButton, mergeProps({
				"icon": createVNode(StopLoading_default, { "class": `${prefixCls}-loading-icon` }, null),
				"color": "primary",
				"variant": "text",
				"shape": "circle"
			}, attrs, {
				"class": classNames([attrs.class, `${prefixCls}-loading-button`]),
				"action": "onCancel"
			}), null);
		};
	}
});
//#endregion
export { LoadingButton_default as default };
