const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_types = require("../../types.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_materials = require("@pisell/materials");
//#region src/plus/saasDevice/appPeripheral/components/shared/I18nNameFormItem.tsx
const I18nNameFormItem = ({ name, label, requiredMessage, textarea }) => /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
	name,
	label,
	required: Boolean(requiredMessage),
	rules: requiredMessage ? [{ validator: require_types.validateI18nRequired(requiredMessage) }] : void 0
}, /* @__PURE__ */ react.default.createElement(_pisell_materials.BaseTranslation, {
	renderMode: "edit",
	type: textarea ? "textarea" : void 0
}));
//#endregion
exports.default = I18nNameFormItem;
