12 lines
193 B
TypeScript
Raw Normal View History

2016-07-29 20:55:19 +03:00
import { BSOD } from './actions';
export type State = boolean;
export default function(state: State = false, { type }): State {
if (type === BSOD) {
return true;
}
2016-07-29 20:55:19 +03:00
return state;
2016-07-29 20:55:19 +03:00
}