mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
16 lines
435 B
TypeScript
16 lines
435 B
TypeScript
import { MODAL_HANDLERS } from '~/redux/modal/handlers';
|
|
import { createReducer } from '~/utils/reducer';
|
|
import { DIALOGS } from '~/redux/modal/constants';
|
|
import { ValueOf } from '~/redux/types';
|
|
|
|
export interface IModalState {
|
|
is_shown: boolean;
|
|
dialog: ValueOf<typeof DIALOGS>;
|
|
}
|
|
|
|
const INITIAL_STATE: IModalState = {
|
|
is_shown: true,
|
|
dialog: DIALOGS.EDITOR,
|
|
};
|
|
|
|
export default createReducer(INITIAL_STATE, MODAL_HANDLERS);
|