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/ButtonFullWidth.tsx
var i = ({ ui: i, disabled: a, onClick: o, isLoading: s }) => {
	let c = i?.label ?? "Submit", l = i?.props ?? {};
	return /* @__PURE__ */ n(e, {
		type: "button",
		variant: i?.variant ?? "default",
		...l,
		disabled: a || s,
		onClick: () => o(),
		size: "lg",
		className: "w-full font-medium",
		children: [s && /* @__PURE__ */ t(r, { className: "h-4 w-4 animate-spin" }), c]
	});
};
//#endregion
export { i as ButtonFullWidth };
