mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-02-23 15:02:52 +03:00
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
|
import { CHANGE_SECTION } from '../constants/actionTypes';
|
||
|
import { StoreAction } from '../actions';
|
||
|
|
||
|
export type SectionState = string;
|
||
|
|
||
|
export default function section(state = 'Actions', action: StoreAction) {
|
||
|
if (action.type === CHANGE_SECTION) {
|
||
|
return action.section;
|
||
|
}
|
||
|
return state;
|
||
|
}
|