selectors.ts 369 B

12345678910
  1. export const getPlugins = state => {
  2. const regex = new RegExp(state.searchQuery, 'i');
  3. return state.plugins.filter(item => {
  4. return regex.test(item.name) || regex.test(item.info.author.name) || regex.test(item.info.description);
  5. });
  6. };
  7. export const getPluginsSearchQuery = state => state.searchQuery;
  8. export const getLayoutMode = state => state.layoutMode;