import "choerodon-ui/pro/lib/text-field/style";
import _TextField from "choerodon-ui/pro/lib/text-field";
import "choerodon-ui/pro/lib/form/style";
import _Form from "@hzero-front-ui/c7n-ui/lib/FormPro";
import "choerodon-ui/pro/lib/select-box/style";
import _SelectBox from "choerodon-ui/pro/lib/select-box";
import "choerodon-ui/pro/lib/select/style";
import _Select from "choerodon-ui/pro/lib/select";
import React, { useEffect } from 'react';
import { observer } from 'mobx-react-lite';
import Tips from "../../../../../../components/new-tips";
var Option = _Select.Option;
var EnvForm = observer(function (props) {
  var EnvQuotaFormDs = props.EnvQuotaFormDs;
  useEffect(function () {}, []);

  var getSuffix = function getSuffix(value) {
    return /*#__PURE__*/React.createElement("span", {
      className: "c7ncd-cluster-envQuota-suffix"
    }, value);
  };

  return /*#__PURE__*/React.createElement("div", {
    className: "c7ncd-cluster-envQuota"
  }, /*#__PURE__*/React.createElement("div", {
    className: "c7ncd-cluster-envQuota-form"
  }, /*#__PURE__*/React.createElement(_Form, {
    dataSet: EnvQuotaFormDs
  }, /*#__PURE__*/React.createElement(_SelectBox, {
    name: "isCheckQuota",
    className: "c7ncd-cluster-envQuota-enabled"
  }, /*#__PURE__*/React.createElement(Option, {
    value: true
  }, "\u662F"), /*#__PURE__*/React.createElement(Option, {
    value: false
  }, "\u5426"))), /*#__PURE__*/React.createElement(Tips, {
    helpText: "hello"
  })), EnvQuotaFormDs.current.get('isCheckQuota') && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
    className: "c7ncd-cluster-envQuota-form"
  }, /*#__PURE__*/React.createElement(_Form, {
    dataSet: EnvQuotaFormDs
  }, /*#__PURE__*/React.createElement(_TextField, {
    name: "CPULimit",
    suffix: getSuffix('milli CPUs')
  }), /*#__PURE__*/React.createElement(_TextField, {
    name: "CPURquest",
    suffix: getSuffix('milli CPUs')
  }))), /*#__PURE__*/React.createElement("div", {
    className: "c7ncd-cluster-envQuota-form"
  }, /*#__PURE__*/React.createElement(_Form, {
    dataSet: EnvQuotaFormDs
  }, /*#__PURE__*/React.createElement(_TextField, {
    name: "memoryLimit",
    suffix: getSuffix('MiB')
  }), /*#__PURE__*/React.createElement(_TextField, {
    name: "memoryRequest",
    suffix: getSuffix('MiB')
  })))));
});
export default EnvForm;