import { View } from "tamagui";
import { Spinner } from "./Spinner";
import { Body } from "./typography";
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
function ListFooter({
  loading,
  noResults,
  noResultsText,
  ...props
}) {
  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.js.map
