accounts-frontend/packages/app/components/ui/bsod/reducer.ts
2020-05-24 02:08:24 +03:00

12 lines
216 B
TypeScript

import { Action } from './actions';
export type State = boolean;
export default function (state: State = false, { type }: Action): State {
if (type === 'BSOD') {
return true;
}
return state;
}