mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +05:30
12 lines
216 B
TypeScript
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;
|
|
}
|