Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mapStateToProps = (state: AppState) => ({
searchFilter: state.input.searchFilter,
searchEnabled: NonEmptyList.isNonEmpty(state.bookmarks.bookmarks),
hasBinaryComms: state.user.hasBinaryComms,
numFilteredBookmarks: getUnlimitedFilteredBookmarks(state).length,
numStagedItems: state.bookmarks.stagedBookmarksGroups.length,
});