UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

32 lines (31 loc) 869 B
import { jsx as a } from "react/jsx-runtime"; import { useGetFavoritesInfinite as f } from "../../../../synapse-queries/user/useFavorites.js"; import m from "../../../../utils/hooks/useGetIsAllSelectedInfiniteList.js"; import { DetailsView as g } from "../view/DetailsView.js"; function S({ ...e }) { const { data: o, isLoading: c, hasNextPage: t, fetchNextPage: i, isFetchingNextPage: s } = f("NAME", "ASC", { throwOnError: !0 }), l = o?.pages.flatMap((r) => r.results) ?? [], n = m( l, e.selected.size, e.isIdSelected, e.isSelectable, t, i, s ); return /* @__PURE__ */ a( g, { entities: l, isLoading: c, hasNextPage: t, fetchNextPage: i, isFetchingNextPage: s, selectAllIsChecked: n, ...e } ); } export { S as FavoritesDetails }; //# sourceMappingURL=FavoritesDetails.js.map