1 import type { Action, Reducer } from 'redux';
3 import type { ImportProvider } from '@proton/pass/lib/import/types';
4 import { importItemsSuccess } from '@proton/pass/store/actions';
5 import type { MaybeNull } from '@proton/pass/types';
7 export type ImportEntry = {
12 provider: ImportProvider;
14 export type ImportState = MaybeNull<ImportEntry>;
16 const importReducer: Reducer<ImportState> = (state = null, action: Action) => {
17 if (importItemsSuccess.match(action)) {
18 return action.payload;
24 export default importReducer;