12 lines
216 B
TypeScript
Raw Normal View History

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