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

42 lines (41 loc) 1.01 kB
import { jsx as m } from "react/jsx-runtime"; import { useGetProjectsInfinite as f } from "../../../../synapse-queries/user/useProjects.js"; import g from "../../../../utils/hooks/useGetIsAllSelectedInfiniteList.js"; import { DetailsView as p } from "../view/DetailsView.js"; function u(t) { return { ...t, type: "org.sagebionetworks.repo.model.Project" }; } function S({ projectsParams: t, ...e }) { const { data: c, isLoading: n, isFetchingNextPage: i, hasNextPage: o, fetchNextPage: s } = f(t, { throwOnError: !0 }), r = c?.pages.flatMap((a) => a.results).map(u) ?? [], l = g( r, e.selected.size, e.isIdSelected, e.isSelectable, o, s, i ); return /* @__PURE__ */ m( p, { entities: r, isLoading: n, hasNextPage: o, fetchNextPage: s, isFetchingNextPage: i, selectAllIsChecked: l, ...e } ); } export { S as ProjectListDetails, u as toEntityHeader }; //# sourceMappingURL=ProjectListDetails.js.map