import { Button as e } from "../../ui/button.js";
import "react";
import { jsx as t, jsxs as n } from "react/jsx-runtime";
import { Loader2 as r } from "lucide-react";
//#region src/components/ui-widgets/widgets/SubmitButton.tsx
var i = ({ ui: i, disabled: a, onClick: o, isLoading: s }) => {
	let c = i?.label || "Submit";
	return /* @__PURE__ */ n(e, {
		type: "button",
		variant: "default",
		...i?.props || {},
		disabled: a || s,
		onClick: () => o(),
		size: "default",
		className: "w-48",
		children: [s && /* @__PURE__ */ t(r, { className: "h-4 w-4 animate-spin" }), c]
	});
};
//#endregion
export { i as SubmitButton };
