"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("@emotion/react");
const React = require("react");
const jsxRuntime = require("@emotion/react/jsx-runtime");
const style = require("./style.js");
require("react-dom");
require("../Modal/ModalV1/ModalWrap.js");
require("../Button/Button/style.js");
require("../../styles.js");
require("../CheckBox/style.js");
require("../RadioButton/RadioButtonWrap.js");
require("../Select/Select/SelectWrap.js");
require("../Input/style.js");
require("../UploadCell/UploadCellWrap.js");
require("../Loading/Loading/LoadingWrap.js");
require("../Loading/FolderLoading/style.js");
require("../Avatar/style.js");
require("../Message/index.js");
require("../Divider/styles.js");
require("../Header/styles.js");
require("../Media/index.js");
require("../Button/NormalButton/style.js");
require("../Button/SmallButton/style.js");
const index = require("../Modal/FullScreenModal/index.js");
const BottomTabBar = function({
  defaultVisible = true,
  duration,
  controlVisible,
  onCancel,
  modalId,
  icon,
  tips,
  actions,
  cssStyle,
  hidden = false
}) {
  const [visible, setVisible] = React.useState();
  React.useEffect(() => {
    if (controlVisible !== void 0) {
      setVisible(controlVisible);
    }
  }, [controlVisible]);
  React.useEffect(() => {
    if (defaultVisible === true && controlVisible !== void 0 && duration !== void 0) {
      setTimeout(() => {
        setVisible(false);
      }, duration);
    }
  }, []);
  return /* @__PURE__ */ jsxRuntime.jsx(
    index.FullScreenModal,
    {
      defaultVisible,
      controlVisible: visible,
      onCancel,
      id: modalId,
      rootStyle: style.modalStyle,
      hidden,
      children: /* @__PURE__ */ jsxRuntime.jsxs(style.TabBarContainer, { cssStyle, children: [
        /* @__PURE__ */ jsxRuntime.jsx(style.IconContainer, { children: icon }),
        /* @__PURE__ */ jsxRuntime.jsxs(style.ContentContainer, { children: [
          tips,
          actions
        ] })
      ] })
    }
  );
};
exports.BottomTabBar = BottomTabBar;
//# sourceMappingURL=index.js.map
