import e from "../MarkdownContent.js";
import { useFieldConfig as t } from "../hooks/useFieldConfig.js";
import "react";
import { jsx as n } from "react/jsx-runtime";
import { Controller as r } from "react-hook-form";
//#region src/components/dynamic-form/fields/MarkdownViewField.tsx
var i = ({ name: i, schema: a, ui: o, form: s, disabled: c }) => {
	let l = t(i, a, o, c);
	return /* @__PURE__ */ n(r, {
		name: i,
		control: s.control,
		defaultValue: l.defaultValue || "",
		render: ({ field: t }) => /* @__PURE__ */ n(e, { content: String(t.value ?? "") })
	});
};
//#endregion
export { i as MarkdownViewField };
