selectors.ts 286 B

12345
  1. import { ExploreId, StoreState } from 'app/types';
  2. export const isSplit = (state: StoreState) => Boolean(state.explore[ExploreId.left] && state.explore[ExploreId.right]);
  3. export const getExploreItemSelector = (exploreId: ExploreId) => (state: StoreState) => state.explore[exploreId];