import e from "./widgets/AiPromptInput.js";
import { ButtonFullWidth as t } from "./widgets/ButtonFullWidth.js";
import { SandboxRun as n } from "./widgets/SandboxRun.js";
import { SubmitButton as r } from "./widgets/SubmitButton.js";
import "react";
import { Fragment as i, jsx as a } from "react/jsx-runtime";
//#region src/components/ui-widgets/UiWidget.tsx
var o = ({ config: o, onSubmit: s, disabled: c, isLoading: l }) => {
	let u = o.options;
	switch (o.widget) {
		case "prompt-input": return /* @__PURE__ */ a(e, {
			disabled: c,
			onSubmit: s,
			ui: u
		});
		case "button": return /* @__PURE__ */ a(r, {
			ui: u,
			disabled: c,
			onClick: s,
			isLoading: l
		});
		case "button-full-w": return /* @__PURE__ */ a(t, {
			ui: u,
			disabled: c,
			onClick: s,
			isLoading: l
		});
		case "sandbox-run": return /* @__PURE__ */ a(n, {
			ui: u,
			disabled: c
		});
	}
	return /* @__PURE__ */ a(i, {});
};
//#endregion
export { o as default };
