synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
33 lines (32 loc) • 890 B
JavaScript
import { jsx as a } from "react/jsx-runtime";
import l from "../../../../components/layout/InfiniteTableLayout.js";
import m from "../../../../components/TanStackTable/StyledTanStackTable.js";
import { useMetadataTaskTable as c } from "../hooks/useMetadataTaskTable.js";
function x(o) {
const { projectId: s } = o, { table: e, isLoading: t, hasNextPage: r, fetchNextPage: i, isFetchingNextPage: n } = c({
projectId: s
});
return /* @__PURE__ */ a(
l,
{
table: /* @__PURE__ */ a(
m,
{
table: e,
styledTableContainerProps: { sx: { my: 2 } }
}
),
isLoading: t,
isEmpty: !t && e.getRowModel().rows.length === 0,
hasNextPage: r,
onFetchNextPageClicked: () => {
i();
},
isFetchingNextPage: n
}
);
}
export {
x as default
};
//# sourceMappingURL=MetadataTasksPage.js.map