import { Dialog as e, DialogContent as t, DialogTitle as n } from "../../../components/ui/dialog.js";
import r from "./WorkflowRunForm.js";
import { jsx as i, jsxs as a } from "react/jsx-runtime";
//#region src/features/workspaces/components/NewWorkflowRunDialog.tsx
var o = ({ isOpen: o, onOpenChange: s, workspace: c, onSuccess: l }) => /* @__PURE__ */ i(e, {
	open: o,
	onOpenChange: s,
	children: /* @__PURE__ */ a(t, {
		className: "max-h-[80vh] min-h-[300px] !max-w-2xl",
		children: [/* @__PURE__ */ i(n, { children: "Run Workflow" }), /* @__PURE__ */ i("div", {
			className: "mt-4 overflow-y-auto",
			children: /* @__PURE__ */ i(r, {
				title: "Run Workflow",
				workspace: c,
				onSuccess: () => {
					l(), s(!1);
				}
			})
		})]
	})
});
//#endregion
export { o as default };
