{"size": 435, "ext": "js", "max_stars_repo_path": "src/billingPeriods/selectors.js", "max_stars_repo_name": "igordavydsson/mvj-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/billingPeriods/selectors.js", "max_issues_repo_name": "igordavydsson/mvj-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/billingPeriods/selectors.js", "max_forks_repo_name": "igordavydsson/mvj-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.25, "max_line_length": 116, "alphanum_fraction": 0.7448275862}
// @flow
import type {Selector} from '$src/types';
import type {RootState} from '$src/root/types';
import type {LeaseId} from '$src/leases/types';

export const getIsFetching: Selector<boolean, void> = (state: RootState): boolean =>
  state.billingPeriod.isFetching;

export const getBillingPeriodsByLease: Selector<Object, LeaseId> = (state: RootState, leaseId: LeaseId): Object => {
  return state.billingPeriod.byLease[leaseId];
};
