UNPKG

qwc2

Version:
26 lines (25 loc) 707 B
/** * Copyright 2025 Sourcepole AG * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import { SET_CURRENT_SEARCH_RESULT } from '../actions/search'; var defaultState = { currentResult: null }; export default function processNotifications() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState; var action = arguments.length > 1 ? arguments[1] : undefined; switch (action.type) { case SET_CURRENT_SEARCH_RESULT: { return { currentResult: action.currentResult }; } default: return state; } }