import { useWorkflowConfigByName as e } from "../../../hooks/useWorkflows.js";
import { require_enums as t } from "../../../packages/contracts/dist/enums/index.js";
import n from "../../../components/ui-widgets/UiActions.js";
import "react";
import { jsx as r } from "react/jsx-runtime";
//#region src/features/workbench/components/WorkflowForms.tsx
var i = t(), a = ({ workflow: t, onSubmit: a }) => {
	let o = e(t.className ?? void 0).data?.ui, s = o?.widgets ?? o?.actions;
	return s?.length ? /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(n, {
		actions: s,
		availableTransitions: t.availableTransitions?.map((e) => e.id) ?? [],
		currentPlace: t.place,
		disabled: t.status === i.WorkflowState.Completed,
		onSubmit: a
	}) }) : null;
};
//#endregion
export { a as default };
