Skeudenn / hooks/use-library-selection / useLibrarySelection
Function: useLibrarySelection() ​
useLibrarySelection(
shown,entries):LibrarySelection
Defined in: src/hooks/use-library-selection.ts:33
The selection of the library page: ids are kept across filter changes, so a selection can be built from several searches. shown is the books in the order they are drawn, which gives a Shift-click range its meaning; entries is the whole library, to find the ticked books that are not shown.
Parameters ​
shown ​
readonly LibraryEntry[]
entries ​
readonly LibraryEntry[]