lbry-desktop/ui/redux/selectors/reportContent.js

7 lines
361 B
JavaScript
Raw Normal View History

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