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