import 'antd/es/radio/style';
import _Radio from 'antd/es/radio';
import { s as styleInject, d as __assign } from './index.js';
import React__default, { useState, useEffect } from 'react';
import { SZsy_CtgRecord } from '@lm_fe/service';
import Analyse from './src.pages.fetal-custom-analyse.js';
import List from './src.pages.fetal-custom-analyse-list.js';
import '@lm_fe/env';
import 'antd/es/tabs/style';
import 'antd/es/tabs';
import 'lodash/size';
import 'lodash/get';
import '@lm_fe/utils';
import 'lodash/orderBy';
import 'lodash/map';
import '@lm_fe/components';
import 'antd/es/collapse/style';
import 'antd/es/collapse';
import 'antd/es/badge/style';
import 'antd/es/badge';
import 'antd/es/button/style';
import 'antd/es/button';
import 'lodash/assign';
import '@ant-design/icons';
import '@lm_fe/components_m';
import '@lm_fe/pages';
var css_248z = ":global(.ant-carousel .slick-prev,\n    .ant-carousel .slick-next,\n    .ant-carousel .slick-prev:hover,\n    .ant-carousel .slick-next:hover) {\n  font-size: inherit;\n  color: red;\n  background: yellow;\n}\n";
styleInject(css_248z);
function Test(props) {
  var _a = useState('判图'),
    tabType = _a[0],
    setTabType = _a[1];
  var _b = useState({
      pageCurrent: 1
    }),
    searchParams = _b[0];
  _b[1];
  var limit = 16;
  function fetchData() {
    return SZsy_CtgRecord.findRecordsPage(__assign({
      pageSize: limit
    }, searchParams)).then(function (r) {});
  }
  useEffect(function () {
    fetchData();
  }, [searchParams]);
  return /*#__PURE__*/React__default.createElement("div", {
    style: {
      height: '100%'
    }
  }, /*#__PURE__*/React__default.createElement(_Radio.Group, {
    optionType: "button",
    style: {
      margin: '10px'
    },
    onChange: function onChange(e) {
      return setTabType(e.target.value);
    },
    value: tabType,
    buttonStyle: "solid",
    size: "small",
    options: ['判图', '历史'].map(function (label) {
      return {
        label: label,
        value: label
      };
    })
  }), /*#__PURE__*/React__default.createElement("div", {
    style: {
      height: 'calc(100% - 50px)'
    }
  }, tabType === '判图' ? /*#__PURE__*/React__default.createElement(Analyse, null) : /*#__PURE__*/React__default.createElement(List, null)));
}
export { Test as default };
//# sourceMappingURL=src.pages.fetal-custom-analyse-entry.js.map
