lbry-desktop/ui/redux/selectors/reportContent.js
2021-04-21 10:49:31 -04:00

13 lines
445 B
JavaScript

// @flow
import { createSelector } from 'reselect';
type State = { reportContent: ReportContentState };
export const selectState = (state: State): ReportContentState => state.reportContent;
export const selectIsReportingContent: (state: State) => boolean = createSelector(
selectState,
(state) => state.isReporting
);
export const selectReportContentError: (state: State) => string = createSelector(selectState, (state) => state.error);