import { validateI18nRequired } from "../../types.js";
import React from "react";
import { Form } from "antd";
import { BaseTranslation } from "@pisell/materials";
//#region src/plus/saasDevice/devicePlanning/components/shared/I18nNameFormItem.tsx
const I18nNameFormItem = ({ name, label, requiredMessage, textarea }) => /* @__PURE__ */ React.createElement(Form.Item, {
	name,
	label,
	required: Boolean(requiredMessage),
	rules: requiredMessage ? [{ validator: validateI18nRequired(requiredMessage) }] : void 0
}, /* @__PURE__ */ React.createElement(BaseTranslation, {
	renderMode: "edit",
	type: textarea ? "textarea" : void 0
}));
//#endregion
export { I18nNameFormItem as default };
