import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
import { useState as c } from "react";
import d from "../BitzBetterScroll/index.mjs";
import u from "../BitzRefresh/index.mjs";
import f from "../BitzNoMore/index.mjs";
import "./index.less.mjs";
const z = ({ extra: s, refreshEmit: t = () => {
}, loadEmit: r = () => {
}, height: i, showNoMore: n = !1, color: a }) => {
  const [e, l] = c(!1), m = () => {
    console.log("上拉加载更多"), r();
  }, p = () => {
    console.log("下拉刷新页面"), l(!0), setTimeout(() => {
      l(!1), t();
    }, 1500);
  };
  return /* @__PURE__ */ o.jsx("div", { className: "BitzLoadMorePage", style: { height: `${i}px` }, children: /* @__PURE__ */ o.jsx(d, { pullUp: m, pullDown: p, pullDownLoading: e, children: /* @__PURE__ */ o.jsxs("div", { className: "scrollBox", children: [
    /* @__PURE__ */ o.jsx(u, { color: a, showRefresh: e }),
    s,
    /* @__PURE__ */ o.jsx(f, { showNoMore: n })
  ] }) }) });
};
export {
  z as default
};
