import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { View } from "tamagui";
import { Spinner } from "./Spinner.native.js";
import { Body } from "./typography.native.js";
function ListFooter(param) {
  var {
    loading,
    noResults,
    noResultsText,
    ...props
  } = param;
  return !loading && !noResults ? /* @__PURE__ */_jsx(_Fragment, {}) : /* @__PURE__ */_jsxs(View, {
    ...props,
    padding: 20,
    children: [loading && /* @__PURE__ */_jsx(Spinner, {}), noResults && /* @__PURE__ */_jsx(Body, {
      ta: "center",
      children: noResultsText || "No results found."
    })]
  });
}
export { ListFooter };
//# sourceMappingURL=ListFooter.native.js.map
