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

48 lines (47 loc) 733 B
import { useState as i, useEffect as A } from "react"; function I(e, s, f, r, o, t, n) { if (e.length === 0 || s === 0) return !1; { const u = e.every( (l) => f(l) || !r(l) ); if (u && o && t && !n) return t(), !1; { if (n) return !1; const l = e.some((c) => r(c)); return u && l; } } } function S(e, s, f, r, o, t, n) { const [u, l] = i(!1); return A(() => { l( I( e, s, f, r, o, t, n ) ); }, [ e, s, t, o, f, r, n ]), u; } export { S as default, I as getIsAllSelectedFromInfiniteList }; //# sourceMappingURL=useGetIsAllSelectedInfiniteList.js.map