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

//#region src/dialog/dialogSubmitButton.tsx
/** Shows a button in the Dialog Footer, which triggers the main action of the Dialog. */
const DialogSubmitButton = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Dialog", useDialogContext());
	return /* @__PURE__ */ jsx(Button, {
		className: cs("vui-dialogSubmitButton", className),
		ml: 2,
		ref,
		text: "Submit",
		...styles.submitButton,
		...rest
	});
});
DialogSubmitButton.displayName = "DialogSubmitButton";

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